Repository navigation
Fix sliced sparse union ArrayData conversion - #11649
Merged
Jefffrey merged 1 commit intoOct 18, 2026
Merged
Conversation
Slice sparse child data by the parent offset and length before building UnionArray children. Cover value alignment, logical nulls and dense controls. Assisted-by: OpenAI Codex
Jefffrey
approved these changes
Oct 18, 2026
Jefffrey
enabled auto-merge
October 18, 2026 03:10
This was referenced Oct 18, 2026
This was referenced Oct 19, 2026
alamb
pushed a commit
that referenced
this pull request
Oct 19, 2026
- Backport #11649 - For inclusion in #11664 Cherry-pick of a934112 --------- Co-authored-by: Kyon <[email protected]>
alamb
pushed a commit
that referenced
this pull request
Oct 21, 2026
- Backport #11649 - For inclusion in #11665 Cherry-pick of a934112 --------- Co-authored-by: Kyon <[email protected]>
alamb
pushed a commit
that referenced
this pull request
Oct 22, 2026
- Backport #11649 - For inclusion in #11666 Cherry-pick of a934112 Co-authored-by: Kyon <[email protected]>
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.
Which issue does this PR close?
make_arrayof a sliced sparse unionArrayDatareads unsliced children #11582Rationale for this change
Converting sliced sparse union
ArrayDatainto an array currently reads values outside the slice. A single-child union can also return a logical null mask longer than the resulting array.What changes are included in this PR?
Apply the parent offset and length to sparse child data before constructing the child arrays. Dense children retain their existing offsets and lengths.
Are these changes tested?
Regression tests compare conversion from sliced
ArrayDatawith direct union slicing, including nonzero offsets, truncation at offset zero, empty slices, custom type IDs, nullable values, and a dense-union control.AI assistance was used to analyze the conversion path and draft the code, regression tests, and this description.
Are there any significant user-facing changes?
No public API changes.