korsakowii commented on PR #4479:
URL: https://github.com/apache/iceberg-python/pull/4479#issuecomment-7179395709

   
   I tested seven synthetic cases across Iceberg table format versions 1 and 2, 
covering identity, hour, and UTC-day partitions. All seven cases that failed or 
produced incorrect results before the fix passed with this change. Stored rows, 
partition values, and filtered scans matched the expected results.
   
   I also checked the existing-file caveat mentioned in the PR. I wrote two 
separate rows with the same input timestamp (`1969-12-31 23:59:59.999999999 
UTC`, nanosecond precision), one before and one after the fix.
   
   | | Before fix | With this fix |
   |---|---|---|
   | Stored timestamp (µs precision, UTC) | `1970-01-01 00:00:00` | `1970-01-01 
00:00:00` |
   | Day partition | `1969-12-31` (`-1`) | `1970-01-01` (`0`) |
   
   A full scan followed by filtering returned both rows, but filtering directly 
in `table.scan()` returned only the newly written row. The legacy file was 
skipped because of its incorrect partition value.
   
   Handling affected legacy files separately makes sense and keeps this PR 
focused.


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