[python] Support time travel by timestamp and watermark in TimeTravelUtil#7899
Open
JunRuiLee wants to merge 1 commit into
Open
[python] Support time travel by timestamp and watermark in TimeTravelUtil#7899JunRuiLee wants to merge 1 commit into
JunRuiLee wants to merge 1 commit into
Conversation
Add scan.timestamp-millis, scan.timestamp, and scan.watermark options to CoreOptions and extend TimeTravelUtil to resolve snapshots using these parameters, aligning with Java-side time travel capabilities. - Add SCAN_TIMESTAMP_MILLIS, SCAN_TIMESTAMP, SCAN_WATERMARK config options and accessor methods to CoreOptions - Extend TimeTravelUtil.try_travel_to_snapshot() to handle timestamp and watermark based time travel - Add SnapshotManager.later_or_equal_watermark() for watermark lookup - Parse scan.timestamp using local timezone (matching Java behavior) - Unify all point-in-time scan options in TableScan through TimeTravelUtil, ensuring mutual-exclusion validation and consistent schema/data resolution - Reject conflicting incremental-between-timestamp and point-in-time scan options
df56ffc to
c149409
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Currently pypaimon's TimeTravelUtil only supports time travel by scan.tag-name and scan.snapshot-id. This PR adds support for three additional time travel modes that are available on the Java side: