From c2bc34af4d70dcf9fb01c800d3946d1a0c4ac960 Mon Sep 17 00:00:00 2001 From: minghong Date: Thu, 26 Dec 2024 13:42:47 +0800 Subject: [PATCH] add logicalAggregate() back --- .../apache/doris/nereids/rules/rewrite/AdjustTopNProject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/AdjustTopNProject.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/AdjustTopNProject.java index 29dafc9e7fa2be..7cc1456382268f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/AdjustTopNProject.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/AdjustTopNProject.java @@ -56,7 +56,7 @@ public class AdjustTopNProject extends OneRewriteRuleFactory { @Override public Rule build() { - return logicalTopN(logicalProject()) + return logicalTopN(logicalProject(logicalAggregate())) .then(topN -> adjust(topN)).toRule(RuleType.ADJUST_TOPN_PROJECT); }