XieJiann commented on code in PR #34171:
URL: https://github.com/apache/doris/pull/34171#discussion_r1582003727


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/ArrayFilter.java:
##########
@@ -49,7 +49,7 @@ private ArrayFilter(List<Expression> expressions) {
      * array_filter(lambda, a1, ...) = array_filter(a1, array_map(lambda, a1, 
...))
      */
     public ArrayFilter(Expression arg) {
-        super("array_filter", arg.child(1).child(0), new ArrayMap(arg));
+        super("array_filter", arg.child(0).child(0), new ArrayMap(arg));
         if (!(arg instanceof Lambda)) {
             throw new AnalysisException(
                     String.format("The 1st arg of %s must be lambda but is 
%s", getName(), arg));

Review Comment:
   I think you should fix the bug in the binder rather than in `ArrayFilter`



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