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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindExpression.java:
##########
@@ -622,6 +623,14 @@ private Plan 
bindAggregate(MatchingContext<LogicalAggregate<Plan>> ctx) {
         SimpleExprAnalyzer aggOutputAnalyzer = buildSimpleExprAnalyzer(
                 agg, cascadesContext, agg.children(), true, true);
         List<NamedExpression> boundAggOutput = 
aggOutputAnalyzer.analyzeToList(agg.getOutputExpressions());
+        if (boundAggOutput.size() == 1 && boundAggOutput.get(0) instanceof 
BoundStar) {

Review Comment:
   should be contains BoundStar? what about `select *, c1 from t group by 1`



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