rdblue commented on code in PR #14533:
URL: https://github.com/apache/iceberg/pull/14533#discussion_r2520547182
##########
core/src/main/java/org/apache/iceberg/DataTableScan.java:
##########
@@ -63,8 +63,17 @@ protected TableScan newRefinedScan(Table table, Schema
schema, TableScanContext
@Override
public CloseableIterable<FileScanTask> doPlanFiles() {
Snapshot snapshot = snapshot();
-
FileIO io = table().io();
+
+ int formatVersion =
+ table() instanceof HasTableOperations
+ ? ((HasTableOperations)
table()).operations().current().formatVersion()
+ : 2;
+
+ if (formatVersion >= 4) {
+ return planV4Files(snapshot, io);
Review Comment:
Rather than modifying data table scan right now, let's leave this out. We
don't need to plug anything into table scans at this point, since that is just
a configuration API.
--
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]