Repository navigation
fix(arrow-data): check view nulls at the right index in ArrayData equality - #11642
Merged
Merged
Conversation
Jefffrey
approved these changes
Oct 18, 2026
Jefffrey
enabled auto-merge
October 18, 2026 02:22
This was referenced Oct 18, 2026
Merged
alamb
pushed a commit
that referenced
this pull request
Oct 19, 2026
… in `ArrayData` equality (#11675) - Backport #11642 - For inclusion in #11664 Cherry-pick of c097092 Co-authored-by: ump45nose <[email protected]> Co-authored-by: ump45nose <[email protected]>
Jefffrey
added a commit
that referenced
this pull request
Oct 22, 2026
… in `ArrayData` equality (#11758) - Backport #11642 - For inclusion in #11665 Cherry-pick of c097092 Co-authored-by: ump45nose <[email protected]> Co-authored-by: ump45nose <[email protected]> Co-authored-by: Andrew Lamb <[email protected]>
alamb
pushed a commit
that referenced
this pull request
Oct 22, 2026
… in `ArrayData` equality (#11811) - Backport #11642 - For inclusion in #11666 Cherry-pick of c097092 Co-authored-by: ump45nose <[email protected]> Co-authored-by: ump45nose <[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?
ArrayDataequality of view arrays checks nulls at the wrong index when the compared range does not start at 0 #11583.Rationale for this change
When a list, list view, fixed-size list or struct compares a
Utf8View/BinaryViewchild range that doesn't start at 0,byte_view_equalread the null bit of the wrong child slot. Arrays that only differ in the data under a null compared unequal, and a real difference in a valid slot could be skipped and compare equal.What changes are included in this PR?
byte_view_equalnow checkslhs.is_null(lhs_start + idx)instead oflhs.is_null(idx), sinceidxcounts from the start of the compared range. The views it compares were already offset bylhs_start, so this only lines the null check up with them.Are these changes tested?
Yes.
test_list_of_view_child_nulls_past_startinarrow/tests/array_equal.rsbuilds a two-row list over aUtf8Viewand aBinaryViewchild and compares the second row sliced off, covering both directions: two[[null]]values with different hidden data (now equal) and two valid rows with different values next to a null at child index 0 (now unequal). It fails without the fix.Are there any significant user-facing changes?
No.
AI disclosure: I used an AI coding assistant to write the fix, the test and this description, and I reviewed all of it.