stevenzwu commented on code in PR #6934:
URL: https://github.com/apache/iceberg/pull/6934#discussion_r1117532308


##########
api/src/main/java/org/apache/iceberg/FileScanTask.java:
##########
@@ -29,6 +29,13 @@ public interface FileScanTask extends 
ContentScanTask<DataFile>, SplittableScanT
    */
   List<DeleteFile> deletes();
 
+  /**
+   * Return the schema for this file scan task.
+   */
+  default Schema schema() {

Review Comment:
   this is needed so that `FileScanTaskParser` (added in this PR) can serialize 
the schema. Then during the deserialization part, schema can be pass into the 
constructor of `BaseFileScanTask`.
   
   Keep it at this level (not base `ContentScanTask` interface or lower) to 
limit the scope of change.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to