cypppper commented on code in PR #48994: URL: https://github.com/apache/doris/pull/48994#discussion_r1997682371
########## fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/ExpressionAnalyzer.java: ########## @@ -889,6 +890,13 @@ private UnboundFunction bindHighOrderFunction(UnboundFunction unboundFunction, E // bindLambdaFunction Lambda lambda = (Lambda) unboundFunction.children().get(0); Expression lambdaFunction = lambda.getLambdaFunction(); + if (unboundFunction.getName().equals("array_reduce") && subChildren.size() == 2) { Review Comment: that's a hack, because current lambda analyzer want two subChildren be both array expression, but array_reduce(lambda, array, initial_value) 's second child is not array expression. -- 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