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
Conversation
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"), |
There was a problem hiding this comment.
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
Thanks @rdsr for pointing out, I've fixed the checkstyle issues as well. |
parquet/src/main/java/org/apache/iceberg/parquet/ParquetDictionaryRowGroupFilter.java
Outdated
Show resolved
Hide resolved
public WriteBuilder schema(Schema schema) { | ||
this.schema = schema; | ||
public WriteBuilder schema(Schema setSchema) { | ||
this.schema = setSchema; |
There was a problem hiding this comment.
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?
parquet/src/main/java/org/apache/iceberg/parquet/ParquetDictionaryRowGroupFilter.java
Outdated
Show resolved
Hide resolved
parquet/src/main/java/org/apache/iceberg/parquet/ParquetFilters.java
Outdated
Show resolved
Hide resolved
parquet/src/main/java/org/apache/iceberg/parquet/ParquetSchemaUtil.java
Outdated
Show resolved
Hide resolved
parquet/src/main/java/org/apache/iceberg/parquet/ParquetTypeVisitor.java
Outdated
Show resolved
Hide resolved
parquet/src/main/java/org/apache/iceberg/parquet/ParquetValueReaders.java
Outdated
Show resolved
Hide resolved
@@ -84,19 +84,18 @@ | |||
} | |||
|
|||
return visitor.list(list, group, elementResult); | |||
|
|||
} finally { | |||
visitor.fieldNames.pop(); | |||
} | |||
|
|||
case MAP: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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]
There was a problem hiding this comment.
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.
Any pending issues? |
Thanks for merging |
Fixes #155