Repository navigation
[57_maintenance] fix(arrow-data): check view nulls at the right index in ArrayData equality - #11811
Merged
Merged
Conversation
…quality (apache#11642) - Closes apache#11583. When a list, list view, fixed-size list or struct compares a `Utf8View` / `BinaryView` child range that doesn't start at 0, `byte_view_equal` read 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. `byte_view_equal` now checks `lhs.is_null(lhs_start + idx)` instead of `lhs.is_null(idx)`, since `idx` counts from the start of the compared range. The views it compares were already offset by `lhs_start`, so this only lines the null check up with them. Yes. `test_list_of_view_child_nulls_past_start` in `arrow/tests/array_equal.rs` builds a two-row list over a `Utf8View` and a `BinaryView` child 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. No. AI disclosure: I used an AI coding assistant to write the fix, the test and this description, and I reviewed all of it. Co-authored-by: ump45nose <[email protected]>
4 of 5 tasks
Jefffrey
marked this pull request as ready for review
October 22, 2026 12:24
alamb
approved these changes
Oct 22, 2026
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.
ArrayDataequality #1164257.3.2(October 2026) #11666Cherry-pick of c097092