Repository navigation
test(encoding): concatenate struct test data with arrow's concat again - #10807
Merged
Xuanwo merged 2 commits intoNov 14, 2026
Merged
Conversation
The round-trip test helper copied struct arrays through MutableArrayData instead of calling concat, working around an arrow-rs check in concat_struct that the TODO tied to arrow 56 (see lance-format#4598). Lance is on arrow 59, where concat handles these arrays, so drop the workaround.
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
Arrow 59.3.2 handles empty-struct lengths and validity, so the workaround from #4598 can be removed. Struct round-trip coverage passed again after merging main, including empty, nullable, nested, and sliced arrays.
Xuanwo
approved these changes
Nov 14, 2026
Xuanwo
left a comment
Member
There was a problem hiding this comment.
Test-only helper cleanup: drops the obsolete struct-only concat workaround and its dead imports. Verified against main 80bc45a (single-hunk delta, no production codec/API/format change) with all head checks completed successfully.
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.
The round-trip test helper in
rust/lance-encoding/src/testing.rscopies struct arrays throughMutableArrayDatainstead of callingarrow_select::concat. The workaround was added for an arrow-rs check inconcat_struct(#4598), with aTODOto remove it once Lance reached arrow 56; this drops the special case and its now-unused imports. Test-only; no library change. Replaces #9643, part of #9647.Verified:
cargo test -p lance-encoding --lib -- structon ubuntu-24.04 → 1039 passed,cargo fmt -p lance-encoding -- --checkclean (run).Re-verified after merging
mainate72e5714:cargo test --profile ci -p lance-encoding --lib --locked -- struct→ 961 passed,cargo fmt --allclean,cargo clippy --profile ci --locked --all --tests --benches -- -D warningsclean.