Skip to content

Commit

Permalink
[AMORO-3269] Use actualPartitionPlans to determine the optimizingType (
Browse files Browse the repository at this point in the history
…apache#3270)

Use actualPartitionPlans to determine the optimizingType
  • Loading branch information
7hong authored Oct 17, 2024
1 parent cc29688 commit bd2485a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ public List<RewriteStageTask> planTasks() {
tasks.addAll(partitionPlan.splitTasks((int) (actualInputSize / avgThreadCost)));
}
if (!tasks.isEmpty()) {
if (evaluators.stream()
.anyMatch(evaluator -> evaluator.getOptimizingType() == OptimizingType.FULL)) {
if (actualPartitionPlans.stream()
.anyMatch(plan -> plan.getOptimizingType() == OptimizingType.FULL)) {
optimizingType = OptimizingType.FULL;
} else if (evaluators.stream()
.anyMatch(evaluator -> evaluator.getOptimizingType() == OptimizingType.MAJOR)) {
} else if (actualPartitionPlans.stream()
.anyMatch(plan -> plan.getOptimizingType() == OptimizingType.MAJOR)) {
optimizingType = OptimizingType.MAJOR;
} else {
optimizingType = OptimizingType.MINOR;
Expand Down

0 comments on commit bd2485a

Please sign in to comment.