Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Jun 6, 2024
1 parent 0c71b1f commit 987918c
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.apache.doris.nereids.worker.Worker;
import org.apache.doris.nereids.worker.WorkerManager;
import org.apache.doris.planner.ExchangeNode;
import org.apache.doris.planner.NestedLoopJoinNode;
import org.apache.doris.planner.PlanFragment;
import org.apache.doris.qe.ConnectContext;

Expand Down Expand Up @@ -72,12 +71,8 @@ protected int degreeOfParallelism() {
return 1;
}

List<NestedLoopJoinNode> nestedLoopJoins = fragment.getPlanRoot()
.collectInCurrentFragment(NestedLoopJoinNode.class::isInstance);
// when we use nested loop join do right outer / semi / anti join, the instance must be 1.
if (!nestedLoopJoins.isEmpty()) {
return 1;
}
// TODO: when we use nested loop join do right outer / semi / anti join, we should add an exchange node with
// gather distribute under the nested loop join

int expectInstanceNum = -1;
if (ConnectContext.get() != null && ConnectContext.get().getSessionVariable() != null) {
Expand Down

0 comments on commit 987918c

Please sign in to comment.