Skip to content

Add time travel support#67

Merged
samansmink merged 9 commits intoduckdb:mainfrom
Tishj:time_travel_support
Jan 15, 2026
Merged

Add time travel support#67
samansmink merged 9 commits intoduckdb:mainfrom
Tishj:time_travel_support

Conversation

@Tishj
Copy link
Copy Markdown
Collaborator

@Tishj Tishj commented Jan 13, 2026

This PR adds support for the use of the AT (VERSION => <numeric version>) clause for a table scan.

Summary of Changes

  • Removed UCCatalogSet and UCInSchemaSet (stripped back the abstraction).
  • Made UCTableEntry::GetScanFunction properly delegate to the wrapped catalog.
  • Added OnDetach override to detach the nested catalogs (the delta catalogs)
  • Added TableInformation inbetween the UCTableSet and the UCTableEntry[1].

[1] This is necessary because the TableCatalogEntry has columns, which informs the table scan which columns exist.
Which requires us to make a TableCatalogEntry for each schema version. This is why the TableInformation has a GetVersion method to use the at clause to determine which entry to return.

@Tishj Tishj requested a review from samansmink January 15, 2026 08:21
@samansmink samansmink merged commit cc76af6 into duckdb:main Jan 15, 2026
10 checks passed
@samansmink
Copy link
Copy Markdown
Collaborator

amazing, thanks @Tishj!

liko9 added a commit to liko9/unity_catalog that referenced this pull request Jan 29, 2026
Adds UCTableCredentialManager to cache temporary credentials for Unity Catalog tables, reducing API calls and improving performance. Includes thread-safe credential refresh with expiration checking.

Resolved conflicts with time travel support changes from PR duckdb#67.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants