diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/distribute/DistributePlanner.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/distribute/DistributePlanner.java index 75a2326236fc9bd..935bb025408f7a5 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/distribute/DistributePlanner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/distribute/DistributePlanner.java @@ -184,7 +184,7 @@ private List filterInstancesWhichCanReceiveDataFromRemote( boolean useLocalShuffle = receiverPlan.getInstanceJobs().stream() .anyMatch(LocalShuffleAssignedJob.class::isInstance); if (useLocalShuffle) { - return getFirstInstancePerShareScan(receiverPlan); + return getLocalShuffleRemoteReceiverJob(receiverPlan); } else if (enableShareHashTableForBroadcastJoin && linkNode.isRightChildOfBroadcastHashJoin()) { return getFirstInstancePerWorker(receiverPlan.getInstanceJobs()); } else { @@ -221,7 +221,7 @@ private List sortDestinationInstancesByBuckets( return Arrays.asList(instances); } - private List getFirstInstancePerShareScan(PipelineDistributedPlan plan) { + private List getLocalShuffleRemoteReceiverJob(PipelineDistributedPlan plan) { List canReceiveDataFromRemote = Lists.newArrayListWithCapacity(plan.getInstanceJobs().size()); for (AssignedJob instanceJob : plan.getInstanceJobs()) { LocalShuffleAssignedJob localShuffleJob = (LocalShuffleAssignedJob) instanceJob;