Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mcshawn10 committed Feb 4, 2025
1 parent c362cf4 commit 6a8c9cf
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions cpp/src/arrow/compare.cc
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ class RangeDataEqualsImpl {

if (!impl.Compare()) {
result_ = false;
return Status::OK();
break;
}

// Start a new run
Expand All @@ -413,16 +413,18 @@ class RangeDataEqualsImpl {
}

// Handle the final run
const auto final_child_num = child_ids[left_codes[left_start_idx_ + run_start]];
int64_t final_run_length = range_length_ - run_start;
if (result_) {
const auto final_child_num = child_ids[left_codes[left_start_idx_ + run_start]];
int64_t final_run_length = range_length_ - run_start;

RangeDataEqualsImpl impl(
options_, floating_approximate_, *left_.child_data[final_child_num],
*right_.child_data[final_child_num], left_start_idx_ + left_.offset + run_start,
right_start_idx_ + right_.offset + run_start, final_run_length);
RangeDataEqualsImpl impl(
options_, floating_approximate_, *left_.child_data[final_child_num],
*right_.child_data[final_child_num], left_start_idx_ + left_.offset + run_start,
right_start_idx_ + right_.offset + run_start, final_run_length);

if (!impl.Compare()) {
result_ = false;
if (!impl.Compare()) {
result_ = false;
}
}
return Status::OK();
}
Expand Down

0 comments on commit 6a8c9cf

Please sign in to comment.