Skip to content

fix(dataset): pin branch tag checkout to the selected manifest - #11831

Merged
Xuanwo merged 1 commit into
lance-format:mainfrom
jackylee-ch:fix/tag-checkout-branch-generation
Dec 2, 2026
Merged

Xuanwo merged 1 commit into
lance-format:mainfrom
jackylee-ch:fix/tag-checkout-branch-generation

Conversation

@jackylee-ch

Copy link
Copy Markdown
Contributor

Opening a tag at dev@2 through TableBuilder could fail on a reader feature used only by main. If dev was recreated and the tag moved during checkout, the reader could also return rows the tag never selected.

Use the attachment header to locate the root, open the target manifest and recheck the tag and branch registration. Bind lazy reads of indices and the transaction to that publication using its ETag or section contents. Numbered history lookups read the live timestamp and transaction together, preserving #11794.

Testing

cargo test -p lance --lib dataset_versioning covered cold and warm checkout, publication races and retained handles. Python and Java tests passed, including Python reads of Lance 14.0.2 and 14.0.3 data.

On local S3, both adapters used 8 requests for cold checkout, 5 from main and 4 from the target branch. Repeated checkouts avoided a manifest GET. Tagged and ordinary numbered branch reads each used 4 requests, including one manifest GET.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added A-encoding Encoding, IO, file reader/writer A-namespace Namespace impls bug Something isn't working labels Dec 2, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

No blocking issues found in tag checkout, publication fencing, or lazy metadata reads.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Dec 2, 2026
@Xuanwo
Xuanwo merged commit bef4341 into lance-format:main Dec 2, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-encoding Encoding, IO, file reader/writer A-namespace Namespace impls bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants