Skip to content

Commit

Permalink
ARROW-10042: [Rust] Don't compare ArrayData's Buffer's capacities
Browse files Browse the repository at this point in the history
When computing equality for two `ArrayData` instances, the capacities of
the underlying `Buffer`s are not relevant.
  • Loading branch information
carols10cents committed Nov 6, 2020
1 parent db012d0 commit 913c51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/arrow/src/array/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ fn compare_buffer_regions(
let shorter_len = left.len().min(right.len());
let s_sliced = left.bit_slice(left_offset, shorter_len);
let o_sliced = right.bit_slice(right_offset, shorter_len);
s_sliced == o_sliced
s_sliced.data() == o_sliced.data()
}

/// Builder for `ArrayData` type
Expand Down

0 comments on commit 913c51e

Please sign in to comment.