Repository navigation
fix(blob): require explicit opt-in for managed storage - #9891
Merged
jackye1995 merged 5 commits intoOct 12, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The earlier clone limitation remains fixed, including snapshots with mixed Managed and registered Packed/Dedicated sidecars after the opt-in is disabled or removed. Ordinary writes retain the released storage layout, and clones preserve the source schema metadata and sticky capability fence.
BubbleCal
approved these changes
Oct 12, 2026
westonpace
approved these changes
Oct 12, 2026
hamersaw
added a commit
to lancedb/lancedb
that referenced
this pull request
Oct 13, 2026
Lance v14.0.0-beta.15 (lance-format/lance#9891) only writes Managed blob descriptors when the schema opts in, so default refresh output now uses Dedicated/Packed layouts per the column's size thresholds. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Xuanwo
added a commit
that referenced
this pull request
Oct 23, 2026
Blob v2's logical input, physical descriptors, object resolution, and lifetime rules are spread across the implementation and user guide. This spec brings those contracts together, distinguishing the table's logical schema from the data file's descriptor schema and defining ownership through rewrites, cleanup, and cloning. The spec reflects the Managed implementation merged in #9293 and the explicit opt-in added in #9891. Kind 4 uses the data file's implicit base; kind 5 carries a registered base ID. Ordinary writes retain Inline/Packed/Dedicated placement. Enabling `lance.blob.managed=true` activates the paired sticky capability flags and requires all maintenance clients to support Managed storage, including clients using cached or historical handles. This PR documents existing behavior and adds documentation links; it contains no runtime implementation changes. Closes #9014
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.
Ordinary Blob V2 writes currently activate
FLAG_MANAGED_BLOBSand require newer readers, even when callers never requested managed storage. Keep default writes and compaction on Inline/Packed/Dedicated descriptors, and require explicit schema metadatalance.blob.managed=truefor managed storage and sidecar reuse. Committing the opt-in activates the sticky reader/writer fence immediately, protecting in-flight writes even if later commits remove the metadata. Reject prepared managed descriptors without the opt-in.Deep clones preserve existing managed references even after the source disables or removes its opt-in. The clone rewrite uses a temporary writer opt-in while preserving the dataset's schema metadata and sticky fence, and copies/rebinds registered Packed/Dedicated sidecars in mixed snapshots. Add regression coverage for default writes/compaction, prepared descriptor rejection, clone/cleanup lifecycle, and released-client compatibility.
Managed blobs first shipped in
v14.0.0-beta.4; no stable Lance release contains them. Verified that the latest stablev13.0.0tag and publishedlance-tablecrate lack the flag. Existing beta-written flagged datasets retain their fence.Rust formatting and pre-commit checks pass. Local builds, tests, clippy, and the full Python lint workflow are skipped at the user's request; Python setup requires compiling the local extension.