Repository navigation
fix(encoding): preserve special slots when recording validity - #9268
Merged
Merged
Conversation
Xuanwo
marked this pull request as ready for review
September 16, 2026 06:16
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The structural-length correction keeps null and empty-list special slots aligned across nested validity layers. It uses the established rep/def representation, and the new round-trip test covers the affected null, populated, and empty-list cases.
BubbleCal
approved these changes
Sep 16, 2026
Xuanwo
added a commit
to lancedb/lancedb
that referenced
this pull request
Sep 16, 2026
Update the Rust workspace and Java Lance dependencies to [v13.0.0-beta.3](https://github.com/lance-format/lance/releases/tag/v13.0.0-beta.3), which includes the nullable-list encoding fix in lance-format/lance#9268. Also resolve existing strict Clippy diagnostics in crate-private OAuth modules and the Python token-cache conversion, without changing effective visibility. Validated the rebuilt Python SDK with nullable and nested lists: Match/Phrase searches preserve document coordinates before and after appending data and optimizing the table.
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.
Writing a nullable struct inside a list can lose the repetition/definition slots reserved for null and empty lists. Recording the struct validity resets
current_lento the child array length, so recording its nullable child next violates the serializer length invariant.Keep the special slots in
current_lenwhen recording validity. The regression round-trips a null list, a populated list with null struct and child values, and an empty list through both validity layers and the list offsets.The required
cargo clippy --all --tests --benches -- -D warningsis blocked by existingclippy::single_range_in_vec_initdiagnostics inencodings/logical/primitive/blob.rs,array_encoding/physical/bitpack.rs, andencodings/logical/primitive/sparse.rson Rust 1.97.0.