feat: Support time travel for reading Lance dataset#18
Open
fightBoxing wants to merge 1 commit intomainfrom
Open
feat: Support time travel for reading Lance dataset#18fightBoxing wants to merge 1 commit intomainfrom
fightBoxing wants to merge 1 commit intomainfrom
Conversation
- Add read.version option for version-based time travel - Add read.timestamp option for timestamp-based time travel - Update LanceSource to use ReadOptions for opening specific dataset versions - Update LanceDynamicTableFactory with new config options - Add comprehensive unit tests for time travel configuration - Validate mutual exclusivity of version and timestamp options
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.
Summary
Implements time travel support for reading Lance datasets, addressing #5.
Changes
Configuration Options
read.version(Integer): Specify a dataset version number to read a specific historical versionread.timestamp(Long): Specify a timestamp in milliseconds to derive the dataset version (best-effort)Implementation Details
LanceOptionswithreadVersionandreadTimestampfields, including validationLanceSource.open()to useReadOptions.Builder.setVersion()when a version is specifiedLanceDynamicTableFactoryto expose new config options for SQL DDL usageLanceSource.Builderwithversion()andtimestamp()methodsUsage Examples
DataStream API:
SQL DDL:
Testing
Closes #5