anoopj commented on code in PR #14533:
URL: https://github.com/apache/iceberg/pull/14533#discussion_r2683231850


##########
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:
   Sounds good. I have reverted this file. Will send a followup PR to wire this 
up. 



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