Kikyou1997 commented on code in PR #11569: URL: https://github.com/apache/doris/pull/11569#discussion_r939600077
########## fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java: ########## @@ -1031,9 +1031,33 @@ private PlanNode createSelectPlan(SelectStmt selectStmt, Analyzer analyzer, long for (int i = 1; i < selectStmt.getTableRefs().size(); ++i) { TableRef innerRef = selectStmt.getTableRefs().get(i); + boolean aggOutputNotHaveMaterializedSlot = false; + AggregateInfo aggregateInfo = null; + TupleDescriptor output = null; + if (innerRef instanceof InlineViewRef) { + InlineViewRef inlineViewRef = (InlineViewRef) innerRef; + QueryStmt queryStmt = inlineViewRef.getViewStmt(); + if (queryStmt instanceof SelectStmt) { Review Comment: I think this bug is just about query block, no matter the stmt of origin SQL is SetOperationStmt or SelectStmt ########## fe/fe-core/src/main/java/org/apache/doris/planner/SortNode.java: ########## @@ -211,9 +211,6 @@ public void init(Analyzer analyzer) throws UserException { outputSmap = new ExprSubstitutionMap(); for (int i = 0; i < slotExprs.size(); ++i) { - if (!sortTupleSlots.get(i).isMaterialized()) { Review Comment: done -- 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