Skip to content

Commit

Permalink
Recover the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Jul 9, 2024
1 parent 0c4d6c7 commit b888968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions cpp/src/arrow/compute/row/compare_internal_avx2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,8 @@ uint32_t KeyCompare::CompareBinaryColumnToRowHelper_avx2(
irow_right =
_mm256_loadu_si256(reinterpret_cast<const __m256i*>(left_to_right_map) + i);
}
// TODO: Need to test if this gather is OK when irow_right is larger than
// 0x80000000u.
__m256i offset_right =
_mm256_i32gather_epi32((const int*)offsets_right, irow_right, 4);
UnsignedOffsetSafeGather32<4>((int const*)offsets_right, irow_right);
offset_right = _mm256_add_epi32(offset_right, _mm256_set1_epi32(offset_within_row));

reinterpret_cast<uint64_t*>(match_bytevector)[i] =
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/row/row_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ Status RowTableImpl::AppendSelectionFrom(const RowTableImpl& from,
// Varying-length rows
auto from_offsets = reinterpret_cast<const uint32_t*>(from.offsets_->data());
auto to_offsets = reinterpret_cast<uint32_t*>(offsets_->mutable_data());
// TODO: The following two variables are possibly overflowing.
uint32_t total_length = to_offsets[num_rows_];
uint32_t total_length_to_append = 0;
for (uint32_t i = 0; i < num_rows_to_append; ++i) {
Expand Down

0 comments on commit b888968

Please sign in to comment.