paul-rogers commented on a change in pull request #1696: DRILL-7095: Expose table schema (TupleMetadata) to physical operator (EasySubScan) URL: https://github.com/apache/drill/pull/1696#discussion_r266213253
########## File path: exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/easy/EasyGroupScan.java ########## @@ -302,4 +316,9 @@ public FileGroupScan clone(FileSelection selection) throws IOException { public boolean canPushdownProjects(List<SchemaPath> columns) { return formatPlugin.supportsPushDown(); } + + @JsonProperty + public TupleMetadata getSchema() { + return formatPlugin.getSchema(); Review comment: Again, schema should be a property of this class. Once it is, the pointer to the schema must be copied to the sub-scan class in the getSpecificScan() method. It is the sub-scan that will be serialized out to the physical plan, then deserialized on each worker node. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services