zhongyujiang commented on PR #16929:
URL: https://github.com/apache/iceberg/pull/16929#issuecomment-4778760037

   Added `testSeekResumesCorrectlyAfterHeadFilesSkipped` which simulates a 
checkpoint/restore scenario to reproduce the bug. The test constructs 
[F0(filtered), F1(1 record), F2(2 records)], reads F1 + F2 record0, captures 
the checkpoint position, then creates a new DataIterator and seeks to that 
position. Without the fix, the incorrect fileOffset causes the restored 
iterator to re-read F2 record0 (duplicate data), which fails the assertion.


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