Skip to content

fix(file): project packed Blob v2 descriptor children by name - #11633

Merged
Xuanwo merged 1 commit into
lance-format:mainfrom
everySympathy:codex/upstream-blob-file-subfields
Nov 30, 2026
Merged

Xuanwo merged 1 commit into
lance-format:mainfrom
everySympathy:codex/upstream-blob-file-subfields

Conversation

@everySympathy

Copy link
Copy Markdown
Contributor

A raw Blob v2 file read selecting blob.kind and blob.size can 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 only size can 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 --lib passed 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.

@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 bug Something isn't working labels Nov 30, 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.

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.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 30, 2026
@Xuanwo
Xuanwo merged commit d4cc0a4 into lance-format:main Nov 30, 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 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