Repository navigation
fix(arrow-data): fix gaps in ListView equality - #11345
Merged
Merged
Conversation
`list_view_equal` had two gaps: - When either array had null rows, it compared each non-null row using the left-hand size only, so `[[1, 2], null]` equaled `[[1, 2, 3], null]`. - It compared child values with `equal_values`, which assumes the null masks were already checked. Child values that differed only in their nulls compared equal, or panicked on an `unwrap` when only the left-hand child had nulls. Compare the right-hand sizes on the null path, and compare child values with `equal_range`, as `list_equal` does.
Jefffrey
approved these changes
Oct 3, 2026
Contributor
|
thanks @neilconway |
This was referenced Oct 3, 2026
alamb
pushed a commit
that referenced
this pull request
Oct 8, 2026
- Backport #11345 - For inclusion in #11352 Cherry-pick of 862b1e0 --------- Co-authored-by: Neil Conway <[email protected]>
This was referenced Oct 19, 2026
alamb
pushed a commit
that referenced
this pull request
Oct 21, 2026
- Backport #11345 - For inclusion in #11665 Cherry-pick of 862b1e0 Co-authored-by: Neil Conway <[email protected]>
alamb
pushed a commit
that referenced
this pull request
Oct 22, 2026
- Backport #11345 - For inclusion in #11666 Cherry-pick of 862b1e0 Co-authored-by: Neil Conway <[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?
Rationale for this change
list_view_equalhad two bugs:[[1, 2], null]was considered equal to[[1, 2, 3], null].What changes are included in this PR?
Are these changes tested?
Yes; existing tests pass, new tests added.
Are there any significant user-facing changes?
No.
AI usage
Developed with Claude Code (Opus 5.5).