From b9a5bf23b1d4bc9e9429775e004b8de725a7212c Mon Sep 17 00:00:00 2001 From: englefly Date: Mon, 13 Nov 2023 09:50:29 +0800 Subject: [PATCH] make AGG_SCALAR_SUBQUERY_TO_WINDOW_FUNCTION rewrite rule --- .../org/apache/doris/nereids/jobs/executor/Rewriter.java | 6 ++---- 1 file changed, 2 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 d3c17e5e6c7dc5..d63d3b902a10d5 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 @@ -145,10 +145,8 @@ public class Rewriter extends AbstractBatchJobExecutor { // we need run the following 2 rules to make AGG_SCALAR_SUBQUERY_TO_WINDOW_FUNCTION work bottomUp(new PullUpProjectUnderApply()), topDown(new PushdownFilterThroughProject()), - costBased( - custom(RuleType.AGG_SCALAR_SUBQUERY_TO_WINDOW_FUNCTION, - AggScalarSubQueryToWindowFunction::new) - ), + custom(RuleType.AGG_SCALAR_SUBQUERY_TO_WINDOW_FUNCTION, + AggScalarSubQueryToWindowFunction::new), bottomUp( new EliminateUselessPlanUnderApply(), // CorrelateApplyToUnCorrelateApply and ApplyToJoin