HappenLee commented on code in PR #19320:
URL: https://github.com/apache/doris/pull/19320#discussion_r1186591879
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/LambdaFunctionCallExpr.java:
##########
@@ -97,14 +99,17 @@ public void analyzeImpl(Analyzer analyzer) throws
AnalysisException {
this.setChild(0, lastChild);
}
- fn = getBuiltinFunction(fnName.getFunction(), argTypes,
- Function.CompareMode.IS_NONSTRICT_SUPERTYPE_OF);
Expr lambda = this.children.get(0);
+ if (!(lambda instanceof LambdaFunctionExpr)) {
+ throw new AnalysisException("array_map must use lambda as
first input params, now is" +
+ lambda.debugString());
+ }
+ fn = new Function(fnName, Arrays.asList(argTypes),
ArrayType.create(lambda.getChild(0).getType(), true),
+ true, true, NullableMode.DEPEND_ON_ARGUMENT);
if (fn == null) {
Review Comment:
delete the check
--
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]