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 5735f21
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion velox/exec/MergeJoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,13 @@ RowVectorPtr MergeJoin::getOutput() {
// 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 5735f21

Please sign in to comment.