Skip to content

Commit

Permalink
Fix the SortBuffer's noMoreInput called twice in Left Anti join
Browse files Browse the repository at this point in the history
  • Loading branch information
JkSelf committed Aug 8, 2024
1 parent ad1f393 commit 04f6fab
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 @@ -646,7 +646,13 @@ RowVectorPtr MergeJoin::getOutput() {
// No rows survived the filter. Get more rows.
continue;
} else if (isAntiJoin(joinType_)) {
return filterOutputForAntiJoin(output);
output = filterOutputForAntiJoin(output);
if (output) {
return output;
}

// No rows survived the filter for anti join. Get more rows.
continue;
} else {
return output;
}
Expand Down

0 comments on commit 04f6fab

Please sign in to comment.