You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/08/17 08:05:53 UTC

[doris] branch branch-2.0 updated: [Fix](Planner) fix multi phase analysis failed in multi instance environment substitution (#22840) (#23073)

This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 25a212bf28 [Fix](Planner) fix multi phase analysis failed in multi instance environment substitution (#22840) (#23073)
25a212bf28 is described below

commit 25a212bf2889ffc8d979403284fa7955b32aad05
Author: LiBinfeng <46...@users.noreply.github.com>
AuthorDate: Thu Aug 17 16:05:46 2023 +0800

    [Fix](Planner) fix multi phase analysis failed in multi instance environment substitution (#22840) (#23073)
---
 fe/fe-core/src/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 e4e3170379..5d00144f05 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 class AggregationNode extends PlanNode {
         // 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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org