Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Jan 12, 2024
1 parent 04f3d19 commit ed1dd4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/src/arrow/acero/swiss_join.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ Status JoinResultMaterialize::AppendProbeOnly(const ExecBatch& key_and_payload,
int num_rows_to_append,
const uint16_t* row_ids,
int* num_rows_appended) {
if (num_rows_to_append) {
if (num_rows_to_append == 0) {
*num_rows_appended = 0;
return Status::OK();
}
Expand Down Expand Up @@ -1608,7 +1608,7 @@ Status JoinResultMaterialize::AppendBuildOnly(int num_rows_to_append,
const uint32_t* key_ids,
const uint32_t* payload_ids,
int* num_rows_appended) {
if (num_rows_to_append) {
if (num_rows_to_append == 0) {
*num_rows_appended = 0;
return Status::OK();
}
Expand Down Expand Up @@ -1639,7 +1639,7 @@ Status JoinResultMaterialize::Append(const ExecBatch& key_and_payload,
int num_rows_to_append, const uint16_t* row_ids,
const uint32_t* key_ids, const uint32_t* payload_ids,
int* num_rows_appended) {
if (num_rows_to_append) {
if (num_rows_to_append == 0) {
*num_rows_appended = 0;
return Status::OK();
}
Expand Down

0 comments on commit ed1dd4b

Please sign in to comment.