Repository navigation
fix(file): project packed Blob v2 descriptor children by name - #11633
Merged
Xuanwo merged 1 commit intoNov 30, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
Decoding the full packed descriptor before projecting its children fixes the raw reader’s incorrect sizes without changing stored files. Local verification passed all 675 file tests, and all six regression cases fail against the base implementation.
Xuanwo
approved these changes
Nov 30, 2026
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.
A raw Blob v2 file read selecting
blob.kindandblob.sizecan silently return the file offset as the size. On 16.0.0b5, blobs containing one byte and six bytes returned sizes of 0 and 64. Selecting onlysizecan instead fail while decoding a UInt8 buffer as UInt64.Decode the packed descriptor with the complete child layout from the file footer, then project the decoded batch by name. The file's physical column indices identify the source descriptor, including for nested and reordered projections. This works for both streaming and blocking reads and does not require rewriting existing files. It builds on the raw footer reconstruction in #10946.
Regression coverage exercises non-contiguous children, a single child, and reversed children on a nested Blob across batch boundaries. It checks payload lengths, field order, NULL versus empty, and the neighboring scalar column.
Validation:
cargo test --profile ci -p lance-file --libpassed all 675 tests. All six new regression cases failed on the unpatched base.Formatting and workspace Clippy (
cargo clippy --all --tests --benches -- -D warnings) also passed.