XieJiann commented on code in PR #27471: URL: https://github.com/apache/doris/pull/27471#discussion_r1406988014
########## fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/Expression.java: ########## @@ -223,6 +224,10 @@ public Expression withChildren(List<Expression> children) { * Whether the expression is a constant. */ public boolean isConstant() { + if (this instanceof AggregateFunction) { Review Comment: don't need. It only used in fold scalar constant and count literal -- 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