From cc8ab2590c2070699fd15b3b8410ea795da1cc30 Mon Sep 17 00:00:00 2001 From: seawinde Date: Wed, 6 Dec 2023 19:01:59 +0800 Subject: [PATCH] tmp --- .../exploration/mv/AbstractMaterializedViewAggregateRule.java | 3 ++- .../apache/doris/nereids/rules/exploration/mv/StructInfo.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/AbstractMaterializedViewAggregateRule.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/AbstractMaterializedViewAggregateRule.java index 9fd388a843709fe..20efcf839c747aa 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/AbstractMaterializedViewAggregateRule.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/AbstractMaterializedViewAggregateRule.java @@ -52,10 +52,11 @@ protected Plan rewriteQueryByView(MatchMode matchMode, PlanSplitContext planSplitContext = new PlanSplitContext(Sets.newHashSet(LogicalAggregate.class)); viewStructInfo.getTopPlan().accept(StructInfo.PLAN_SPLITTER, planSplitContext); - + // generate aggregate in mv and mv output expression mapping LogicalAggregate bottomAggregate = (LogicalAggregate) planSplitContext.getBottomPlan().get(0); Plan topPlan = planSplitContext.getTopPlan(); ExpressionMapping aggregateToTopExpressionMapping = generateAggregateToTopMapping(bottomAggregate, topPlan); + return null; } diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/StructInfo.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/StructInfo.java index 10c2fa232b86a44..9d0b08b1146fdaa 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/StructInfo.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/StructInfo.java @@ -239,7 +239,7 @@ public Void visit(Plan plan, Set predicates) { /** * Split the plan into bottom and up, the boundary is given by context, - * the bottom contains the boundary. + * the bottom contains the boundary, and top plan doesn't contain the boundary. */ public static class PlanSplitter extends DefaultPlanVisitor { @Override