szehon-ho commented on a change in pull request #4382:
URL: https://github.com/apache/iceberg/pull/4382#discussion_r834874605
##########
File path: core/src/main/java/org/apache/iceberg/BaseMetadataTableScan.java
##########
@@ -38,4 +44,14 @@ public long targetSplitSize() {
TableProperties.METADATA_SPLIT_SIZE_DEFAULT);
return PropertyUtil.propertyAsLong(options(), TableProperties.SPLIT_SIZE,
tableValue);
}
+
+ /**
+ * Alternative to {@link #planFiles()}, allows exploring old snapshots even
for empty table.
+ */
+ protected CloseableIterable<FileScanTask> planAllFiles() {
Review comment:
Yea this was tricky and I went back and forth with various solutions.
BaseAllMetadataTableScan used to override planFiles() , and was inherited by
AllDataFiles, AllManifests, AllEntries.
Now I moved AllDataFiles to BaseFilesTableScan and so I don't get this
override anymore.
So it has to be called from two different hierarchies
(BaseAllMetadataTableScans and BaseFilesTableScan), hence moving to their only
common parent to continue sharing the code.
--
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]