Skip to content

Commit

Permalink
Fix the SortBuffer's noMoreInput called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
JkSelf committed Aug 6, 2024
1 parent c0fa8f2 commit a5137b8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion velox/exec/MergeJoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,13 +656,20 @@ RowVectorPtr MergeJoin::getOutput() {
for (const auto [channel, _] : filterInputToOutputChannel_) {
filterInput_->childAt(channel).reset();
}

return output;
}

// No rows survived the filter. Get more rows.
continue;
} else if (isAntiJoin(joinType_)) {
return filterOutputForAntiJoin(output);
auto result = filterOutputForAntiJoin(output);
if (!result) {
// Make sure needsInput() method return true. Otherwise, Driver
// assumes the operator is finished.
input_ = nullptr;
}
return result;
} else {
return output;
}
Expand Down

0 comments on commit a5137b8

Please sign in to comment.