diff --git a/rust/arrow/src/array/data.rs b/rust/arrow/src/array/data.rs index b305d16da2b0c..e52b95450474d 100644 --- a/rust/arrow/src/array/data.rs +++ b/rust/arrow/src/array/data.rs @@ -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