KazydubB commented on a change in pull request #1985: DRILL-7565: ANALYZE TABLE
... REFRESH METADATA does not work for empty Parquet files
URL: https://github.com/apache/drill/pull/1985#discussion_r380227482
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/metastore/ColumnNamesOptions.java
##########
@@ -40,6 +41,7 @@ public ColumnNamesOptions(OptionManager optionManager) {
this.rowGroupStart =
optionManager.getOption(ExecConstants.IMPLICIT_ROW_GROUP_START_COLUMN_LABEL).string_val;
this.rowGroupLength =
optionManager.getOption(ExecConstants.IMPLICIT_ROW_GROUP_LENGTH_COLUMN_LABEL).string_val;
this.lastModifiedTime =
optionManager.getOption(ExecConstants.IMPLICIT_LAST_MODIFIED_TIME_COLUMN_LABEL).string_val;
+ this.projectMetadataColumn =
optionManager.getOption(ExecConstants.IMPLICIT_PROJECT_METADATA_COLUMN_LABEL).string_val;
Review comment:
I think, it is better to declare
`ExecConstants.IMPLICIT_PROJECT_METADATA_COLUMN_LABEL` (and
`ExecConstants.IMPLICIT_LAST_MODIFIED_TIME_COLUMN_LABEL`) as `StringValidator`
and use it as `this.projectMetadataColumn =
optionManager.getOption(ExecConstants.IMPLICIT_PROJECT_METADATA_COLUMN_LABEL);`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services