Github user vdiravka commented on a diff in the pull request:
https://github.com/apache/drill/pull/644#discussion_r86477598
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/Metadata.java
---
@@ -927,15 +927,11 @@ public void setMax(Object max) {
@JsonProperty List<ParquetFileMetadata_v2> files;
@JsonProperty List<String> directories;
@JsonProperty String drillVersion;
- @JsonProperty boolean isDateCorrect;
+ @JsonProperty int writerVersion;
--- End diff --
`ParquetTableMetadata_v2` is used mostly when the parquet meta cache file
created.
For reading the metadata cache file or metadta footer this class is not
used except the case, when we read one parquet file or parquet folder, an empty
instance of this class is created, but used only columnTypeInfo field. And the
drillVersion or writerVersion weren't used. That's why everything worked but it
was not right. I added an empty constructor (as I made earlier, actually master
version).
And added initializing this fields across constructors parameters. I think
it is more right and looks like this is what you were talking about.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---