sreemanamala commented on code in PR #16128: URL: https://github.com/apache/druid/pull/16128#discussion_r1547135705
########## processing/src/main/java/org/apache/druid/math/expr/Function.java: ########## @@ -241,7 +241,11 @@ public ExpressionType getOutputType(Expr.InputBindingInspector inspector, List<E @Override public boolean canVectorize(Expr.InputBindingInspector inspector, List<Expr> args) { - return inspector.areNumeric(args) && inspector.canVectorize(args); + final ExpressionType outputType = args.get(0).getOutputType(inspector); + if (outputType == null && NullHandling.replaceWithDefault()) { + return false; Review Comment: added -- 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...@druid.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org For additional commands, e-mail: commits-h...@druid.apache.org