Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Baseline to iceberg-parquet #526

Merged
merged 7 commits into from Oct 22, 2019
Merged

Add Baseline to iceberg-parquet #526

merged 7 commits into from Oct 22, 2019

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented Oct 9, 2019

Fixes #155

@rdsr
Copy link
Contributor

rdsr commented Oct 10, 2019

Seems like some checkstyle errors are remaining. https://travis-ci.org/apache/incubator-iceberg/jobs/595801676

@@ -165,7 +165,7 @@ task deploySite(type: Exec) {
// Baseline style guide.
def baselineProjects = [ project("iceberg-api"), project("iceberg-common"), project("iceberg-core"),
Copy link
Contributor

@rdsr rdsr Oct 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once iceberg-pig and iceberg-parquet are fixed. We should remove the baselineProjects variable

@Fokko
Copy link
Contributor Author

Fokko commented Oct 11, 2019

Thanks @rdsr for pointing out, I've fixed the checkstyle issues as well.

public WriteBuilder schema(Schema schema) {
this.schema = schema;
public WriteBuilder schema(Schema setSchema) {
this.schema = setSchema;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The convention used elsewhere to get around this problem is to use "new" as in newSchema. Could you use that instead for consistency?

@@ -84,19 +84,18 @@
}

return visitor.list(list, group, elementResult);

} finally {
visitor.fieldNames.pop();
}

case MAP:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of suppressing, we could break these into methods by case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do that, but that will mess up the git history. It is up to you.

private static final File parquetFile = new File("/tmp/stats-row-group-filter-test.parquet");
private static MessageType parquetSchema = null;
private static BlockMetaData rowGroupMetadata = null;
private static DictionaryPageReadStore dictionaryStore = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't all caps the right format for private static variables?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they should be final then as well. I'll check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes:

[ant:checkstyle] [ERROR] /Users/fokkodriesprong/Desktop/incubator-iceberg/parquet/src/test/java/org/apache/iceberg/parquet/TestDictionaryRowGroupFilter.java:107:30: Name 'PARQUET_SCHEMA' must match pattern '^[a-z][a-zA-Z0-9]*$'. [StaticVariableName]
[ant:checkstyle] [ERROR] /Users/fokkodriesprong/Desktop/incubator-iceberg/parquet/src/test/java/org/apache/iceberg/parquet/TestDictionaryRowGroupFilter.java:108:32: Name 'ROW_GROUP_METADATA' must match pattern '^[a-z][a-zA-Z0-9]*$'. [StaticVariableName]
[ant:checkstyle] [ERROR] /Users/fokkodriesprong/Desktop/incubator-iceberg/parquet/src/test/java/org/apache/iceberg/parquet/TestDictionaryRowGroupFilter.java:109:42: Name 'DICTIONARY_STORE' must match pattern '^[a-z][a-zA-Z0-9]*$'. [StaticVariableName]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did revert the change for the PARQUET_FILE, since that one is final.

@Fokko
Copy link
Contributor Author

Fokko commented Oct 18, 2019

Any pending issues?

@rdblue rdblue merged commit 336174b into apache:master Oct 22, 2019
@Fokko Fokko deleted the fd-fix-parquet branch October 24, 2019 09:03
@Fokko
Copy link
Contributor Author

Fokko commented Oct 24, 2019

Thanks for merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Baseline] Apply baseline to iceberg-parquet
3 participants