RussellSpitzer commented on issue #6424:
URL: https://github.com/apache/iceberg/issues/6424#issuecomment-1351901052

   > here length() is the amount of bytes scanned ( only partially read)
   
   
https://github.com/apache/iceberg/blob/33217abf7f88c6c22a8c43b320f9de48de998b94/api/src/main/java/org/apache/iceberg/ContentScanTask.java#L48-L53
   
   Your hypothetical has a contradiction
   
   `length = splitSize`
   So
   `if (splitSize == fileSizeInBytes) then length == fileSizeInBytes`
   
   `If length == fileSizeInBytes/2 then splitSize = fileSizeInBytes/2` 
   Therefor there must be one other task of length
   `fileSizeInBytes/2` otherwise we wouldn't be reading the whole file. So 
again the fraction here is correct at 50% for the given task. The other Task 
will count the other 50%


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