englefly commented on code in PR #17284: URL: https://github.com/apache/doris/pull/17284#discussion_r1127290558
########## fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/logical/ExtractAndNormalizeWindowExpression.java: ########## @@ -61,7 +65,8 @@ public Rule build() { } else { boolean needAggregate = bottomProjects.stream().anyMatch(expr -> expr.anyMatch(AggregateFunction.class::isInstance)); - if (needAggregate) { + boolean hasAggChild = isProjectOnAggregate(project); Review Comment: "isProjectOnAggregate" can be removed. If an agg-fun need to be push down and the child is AggNode, the agg-fun is already pushed down in NormalizeAggregation Rule. -- 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