morrySnow commented on code in PR #12226:
URL: https://github.com/apache/doris/pull/12226#discussion_r960294569


##########
fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java:
##########
@@ -1063,7 +1065,7 @@ private PlanNode createSelectPlan(SelectStmt selectStmt, 
Analyzer analyzer, long
                         .getSlots()
                         .stream()
                         .anyMatch(SlotDescriptor::isMaterialized)) {
-                    aggregateInfo.materializeRequiredSlots(analyzer, null);
+                    aggregateInfoList.forEach(a -> 
a.materializeRequiredSlots(analyzer, null));

Review Comment:
   add comments



##########
fe/fe-core/src/main/java/org/apache/doris/analysis/SlotDescriptor.java:
##########
@@ -168,6 +168,7 @@ public void materializeSrcExpr() {
         }
         for (Expr expr : sourceExprs) {
             if (!(expr instanceof SlotRef)) {
+                expr.materializeSrcExpr();

Review Comment:
   add comments



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