Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Nov 28, 2024
1 parent 51ad321 commit 7e13881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ protected int degreeOfParallelism() {
}

// TODO: check nested loop join do right outer / semi / anti join
PlanNode leftMostNode = findLeftmostNode(fragment.getPlanRoot()).second;
// when we use nested loop join do right outer / semi / anti join, the instance must be 1.
if (leftMostNode.getNumInstances() == 1) {
expectInstanceNum = 1;
}
return expectInstanceNum;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1815,8 +1815,9 @@ protected void computeFragmentHosts() throws Exception {
if (ConnectContext.get() != null && ConnectContext.get().getSessionVariable() != null) {
exchangeInstances = ConnectContext.get().getSessionVariable().getExchangeInstanceParallel();
}
boolean isNereids = context != null && context.getState().isNereids();
// when we use nested loop join do right outer / semi / anti join, the instance must be 1.
if (leftMostNode.getNumInstances() == 1) {
if (!isNereids && leftMostNode.getNumInstances() == 1) {
exchangeInstances = 1;
}
// Using serial source means a serial source operator will be used in this fragment (e.g. data will be
Expand Down

0 comments on commit 7e13881

Please sign in to comment.