Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Jun 12, 2024
1 parent 13383b4 commit b05d490
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ protected boolean useShareScan(Map<Worker, UninstancedScanSource> workerToScanRa

protected boolean parallelTooLittle(Map<Worker, UninstancedScanSource> workerToScanRanges) {
if (this instanceof UnassignedScanBucketOlapTableJob) {
return scanRangeToLittle(workerToScanRanges) && bucketTooLittle(workerToScanRanges);
return scanRangesToLittle(workerToScanRanges) && bucketsTooLittle(workerToScanRanges);
} else if (!scanNodes.isEmpty()) {
return scanRangeToLittle(workerToScanRanges);
return scanRangesToLittle(workerToScanRanges);
} else {
return false;
}
}

protected boolean scanRangeToLittle(
protected boolean scanRangesToLittle(
Map<Worker, UninstancedScanSource> workerToScanRanges) {
ConnectContext context = ConnectContext.get();
int backendNum = workerToScanRanges.size();
Expand Down Expand Up @@ -173,7 +173,7 @@ protected int degreeOfParallelism(int maxParallel) {
return Math.min(maxParallel, Math.max(fragment.getParallelExecNum(), 1));
}

protected boolean bucketTooLittle(Map<Worker, UninstancedScanSource> workerToScanRanges) {
protected boolean bucketsTooLittle(Map<Worker, UninstancedScanSource> workerToScanRanges) {
int parallelExecNum = fragment.getParallelExecNum();
for (UninstancedScanSource uninstancedScanSource : workerToScanRanges.values()) {
ScanSource scanSource = uninstancedScanSource.scanSource;
Expand Down

0 comments on commit b05d490

Please sign in to comment.