From dea03681b536c63a3d5f169cd179aa02ea6fdc32 Mon Sep 17 00:00:00 2001 From: LiBinfeng <1204975323@qq.com> Date: Mon, 14 Aug 2023 11:56:33 +0800 Subject: [PATCH] [Fix](Planner) fix multi phase analysis failed in multi instance environment substitution --- .../main/java/org/apache/doris/planner/AggregationNode.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/AggregationNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/AggregationNode.java index e4e3170379dadd..5d00144f05c605 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/AggregationNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/AggregationNode.java @@ -176,6 +176,9 @@ public void init(Analyzer analyzer) throws UserException { // to our input; our conjuncts don't get substituted because they already // refer to our output outputSmap = getCombinedChildSmap(); + if (aggInfo.isMerge()) { + aggInfo.substitute(aggInfo.getIntermediateSmap(), analyzer); + } aggInfo.substitute(outputSmap, analyzer); // assert consistent aggregate expr and slot materialization