Skip to content

Commit

Permalink
[bug](sharedscan) Fix shared scan bug (apache#28841)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel39 authored Dec 22, 2023
1 parent 5420575 commit cb61a07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
Original file line number Diff line number Diff line change
Expand Up @@ -2066,8 +2066,8 @@ private void computeFragmentHosts() throws Exception {
instanceParam.perNodeSharedScans.put(planNodeId, sharedScan);
params.instanceExecParams.add(instanceParam);
}
params.ignoreDataDistribution = sharedScan;
params.parallelTasksNum = sharedScan ? 1 : params.instanceExecParams.size();
params.ignoreDataDistribution = sharedScan && enablePipelineXEngine;
params.parallelTasksNum = params.ignoreDataDistribution ? 1 : params.instanceExecParams.size();
}
}
}
Expand Down Expand Up @@ -2944,8 +2944,8 @@ private void assignScanRanges(PlanFragmentId fragmentId, int parallelExecInstanc
}
}
}
params.parallelTasksNum = ignoreStorageDataDistribution ? 1 : params.instanceExecParams.size();
params.ignoreDataDistribution = ignoreStorageDataDistribution;
params.ignoreDataDistribution = ignoreStorageDataDistribution && enablePipelineXEngine;
params.parallelTasksNum = params.ignoreDataDistribution ? 1 : params.instanceExecParams.size();
}

private final Map<PlanFragmentId, BucketSeqToScanRange> fragmentIdTobucketSeqToScanRangeMap = Maps.newHashMap();
Expand Down

0 comments on commit cb61a07

Please sign in to comment.