clintropolis commented on a change in pull request #11853:
URL: https://github.com/apache/druid/pull/11853#discussion_r744019795
##########
File path: core/src/main/java/org/apache/druid/math/expr/ApplyFunction.java
##########
@@ -282,8 +246,9 @@ public ExprEval apply(LambdaExpr lambdaExpr, List<Expr>
argsExpr, Expr.ObjectBin
}
List<List<Object>> product = CartesianList.create(arrayInputs);
- CartesianMapLambdaBinding lambdaBinding = new
CartesianMapLambdaBinding(product, lambdaExpr, bindings);
- return applyMap(lambdaExpr, lambdaBinding);
+ CartesianMapLambdaBinding lambdaBinding = new
CartesianMapLambdaBinding(elementType, product, lambdaExpr, bindings);
+ ExpressionType lambdaType = lambdaExpr.getOutputType(lambdaBinding);
Review comment:
no, `ExpressionType.asArrayType` checks for nulls and `applyMap` will
use the type of the first element as the array type if the hint is null
--
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]