yinzhijian commented on code in PR #12159:
URL: https://github.com/apache/doris/pull/12159#discussion_r962319498


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java:
##########
@@ -230,6 +246,13 @@ public PlanFragment 
visitPhysicalAggregate(PhysicalAggregate<Plan> aggregate, Pl
             case GLOBAL:
                 inputPlanFragment.updateDataPartition(mergePartition);
                 return inputPlanFragment;
+            case DISTINCT_LOCAL:
+                AggregationNode globalAggNode = (AggregationNode) 
aggregationNode.getChild(0);
+                globalAggNode.unsetNeedsFinalize();
+                globalAggNode.setIntermediateTuple();
+                inputPlanFragment.updateDataPartition(mergePartition);

Review Comment:
    partition exprs same as DISTINCT_LOCAL group by exprs



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to