Skip to content

Commit

Permalink
gather_internal.h: Fix assertion: src_validity.offset is not always r…
Browse files Browse the repository at this point in the history
…elated to src_offset_
  • Loading branch information
felipecrv committed May 17, 2024
1 parent 77d292b commit c2dc17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/util/gather_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class Gather</*kValueWidthInBits=*/1, IndexCType, /*kWithFactor=*/false>
ARROW_FORCE_INLINE int64_t Execute(const ArraySpan& src_validity,
const ArraySpan& idx_validity,
uint8_t* out_is_valid) {
assert(src_length_ == src_validity.length && src_offset_ == src_validity.offset);
assert(src_length_ == src_validity.length);
assert(idx_length_ == idx_validity.length);
assert(out_is_valid);
return this->template ExecuteWithNulls<kOutputIsZeroInitialized>(
Expand Down

0 comments on commit c2dc17a

Please sign in to comment.