timothyw553 commented on code in PR #19292:
URL: https://github.com/apache/iceberg/pull/19292#discussion_r4794477392


##########
core/src/test/java/org/apache/iceberg/TestV4ScanPlanning.java:
##########
@@ -117,6 +117,7 @@ private void 
commitRootManifestSnapshot(TestTables.TestTable table, TrackedFile.
             table.schema().schemaId(),
             /* manifestList= */ null,
             rootLocation,
+            1024L,

Review Comment:
   why are we hardcoding `1024L` when a real parquet file was written? 
`LocalFileIO` ignores that length, whereas `HadoopFileIO` fails with it now 
that readers use `rootSizeInBytes`. could we measure the written file instead, 
and maybe add a scan test with a `FileIO` that actually uses the supplied 
length?
   
   ```diff
                rootLocation,
   -            1024L,
   +            out.toInputFile().getLength(),
                0L,
   ```



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