sohailshk commented on PR #4361:
URL: https://github.com/apache/iceberg-python/pull/4361#issuecomment-7049818825

   Thanks for the review. I'm keeping `>=`, so the later entry wins on equal 
timestamps.
   
   I looked at the Java side: `SnapshotUtil.nullableSnapshotIdAsOfTime` uses a 
strict `>` against the best timestamp, so it keeps the first entry. In the 
review of that change (apache/iceberg#17360) the tie case was raised and the 
answer was that the spec leaves it undefined, so first-wins there is a 
by-product of the loop rather than a decision. Last-wins is what 
`snapshot_as_of_timestamp` returned before this PR, so keeping it leaves tie 
behavior unchanged and only fixes the out-of-order case; and the later entry is 
the state that was current last. If you would rather match Java exactly, it is 
a one-character change (`>` instead of `>=`) and I can switch it.
   


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