gitccl commented on code in PR #18175:
URL: https://github.com/apache/doris/pull/18175#discussion_r1151354974


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/LambdaFunctionCallExpr.java:
##########
@@ -133,7 +135,6 @@ public void analyzeImpl(Analyzer analyzer) throws 
AnalysisException {
                 LOG.warn("fn {} not exists", this.toSqlImpl());
                 throw new 
AnalysisException(getFunctionNotFoundError(collectChildReturnTypes()));
             }
-            fn.setReturnType(getChild(0).getType());
         } else if (fnName.getFunction().equalsIgnoreCase("array_filter")) {

Review Comment:
   The return type has already been specified in the `fn` when we create 
function in `doris_builtins_functions.py`. In this case, the return type of 
`fn` is `Int64`, but the the return type of children 0 is `Array(Bool)`, we 
shouldn't change the return type of the `fn`.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to