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


##########
core/src/main/java/org/apache/iceberg/V4ManifestReader.java:
##########
@@ -186,9 +195,24 @@ static class Builder {
     private Schema requestedProjection = null;
     private ScanMetrics scanMetrics = ScanMetrics.noop();
 
-    private Builder(InputFile file, Map<Integer, PartitionSpec> specsById, 
String tableLocation) {
+    private Builder(
+        ManifestFile manifest,
+        FileIO io,
+        Map<Integer, PartitionSpec> specsById,
+        String tableLocation) {
       Preconditions.checkArgument(tableLocation != null, "Invalid table 
location: null");
-      this.file = file;
+      Preconditions.checkArgument(
+          manifest.formatVersion() == SUPPORTED_FORMAT_VERSION,

Review Comment:
   Intentionally not doing `>=` because the reader currently supports only v4. 
We might change this for future versions. 



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