xiangfu0 commented on code in PR #12118: URL: https://github.com/apache/pinot/pull/12118#discussion_r1431978111
########## pinot-query-planner/src/main/java/org/apache/calcite/rel/rules/PinotEvaluateLiteralRule.java: ########## @@ -171,13 +180,70 @@ private static RexNode evaluateLiteralOnlyFunction(RexCall rexCall, RexBuilder r "Caught exception while converting result value: " + resultValue + " to type: " + rexNodeType, e); } try { + if (rexNodeType instanceof ArraySqlType) { + List<Object> resultValues = new ArrayList<>(); + assert resultValue != null; Review Comment: moved the null check to above. -- 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...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org