kangkaisen commented on a change in pull request #4482:
URL: https://github.com/apache/incubator-doris/pull/4482#discussion_r479733310



##########
File path: 
fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java
##########
@@ -863,6 +863,14 @@ private PlanFragment 
createMergeAggregationFragment(AggregationNode node, PlanFr
             //     childFragment.addPlanRoot(node);
             //     return childFragment;
             // }
+
+            PlanNode childPlan = childFragment.getPlanRoot();
+            if (childPlan instanceof OlapScanNode &&
+                    
((OlapScanNode)childPlan).getOlapTable().satisfyHashDistribution(partitionExprs))
 {

Review comment:
       I think we move this check to `createAggregationFragment` 780 line is 
better?  Because `createMergeAggregationFragment ` should create a merge 
aggregate fragment.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to