From 0535a3701e31703758e3629e282824194f75d667 Mon Sep 17 00:00:00 2001 From: minghong Date: Thu, 26 Dec 2024 22:55:41 +0800 Subject: [PATCH] test-no-costbased --- .../org/apache/doris/nereids/jobs/executor/Rewriter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/executor/Rewriter.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/executor/Rewriter.java index 0d037c9aed7d34..449d93bf89581f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/executor/Rewriter.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/executor/Rewriter.java @@ -315,7 +315,7 @@ public class Rewriter extends AbstractBatchJobExecutor { bottomUp(new MergeSetOperations(), new MergeSetOperationsExcept()), bottomUp(new PushProjectIntoOneRowRelation()), topDown(new MergeOneRowRelationIntoUnion()), - costBased(topDown(new InferSetOperatorDistinct())), + topDown(new InferSetOperatorDistinct()), topDown(new BuildAggForUnion()), bottomUp(new EliminateEmptyRelation()), // when union has empty relation child and constantExprsList is not empty, @@ -355,12 +355,12 @@ public class Rewriter extends AbstractBatchJobExecutor { ), topic("Eager aggregation", - costBased(topDown( + topDown( new PushDownAggWithDistinctThroughJoinOneSide(), new PushDownAggThroughJoinOneSide(), new PushDownAggThroughJoin() - )), - costBased(custom(RuleType.PUSH_DOWN_DISTINCT_THROUGH_JOIN, PushDownDistinctThroughJoin::new)), + ), + custom(RuleType.PUSH_DOWN_DISTINCT_THROUGH_JOIN, PushDownDistinctThroughJoin::new), topDown(new PushCountIntoUnionAll()) ),