JunRuiLee opened a new pull request, #7941:
URL: https://github.com/apache/paimon/pull/7941

   ### Purpose
   
     Add `rollback_to_timestamp` to `FileStoreTable`, allowing users to 
rollback a table to the latest snapshot with commit time <= a given timestamp 
in milliseconds.
   
     **Note:** The timestamp lookup (`earlier_or_equal_time_mills`) uses a 
binary search that breaks on exact match. If multiple snapshots share the same 
millisecond, it may not return the highest matching snapshot ID. This matches 
Java's
     `earlierOrEqualTimeMills` behavior — a coordinated fix across both 
languages is a follow-up.
   
     ### Tests
   
     - `test_table_rollback_to_timestamp` — writes 5 commits, rolls back using 
snapshot 3's timestamp, verifies snapshots 4 and 5 are removed.
     - `test_table_rollback_to_timestamp_no_match` — verifies `ValueError` is 
raised when timestamp is before the earliest snapshot.
   


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

Reply via email to