yashmayya commented on code in PR #16992:
URL: https://github.com/apache/pinot/pull/16992#discussion_r2418202400
##########
pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/TransformFunctionFactory.java:
##########
@@ -336,7 +344,14 @@ public static TransformFunction get(ExpressionContext
expression, Map<String, Co
} else {
// Scalar function
String canonicalName = FunctionRegistry.canonicalize(functionName);
- FunctionInfo functionInfo =
FunctionRegistry.lookupFunctionInfo(canonicalName, numArguments);
+ // Get data types for the arguments
+ DataSchema.ColumnDataType[] argumentDataTypes = new
DataSchema.ColumnDataType[numArguments];
+ for (int i = 0; i < numArguments; i++) {
+ argumentDataTypes[i] = DataSchema.ColumnDataType.fromDataType(
+
transformFunctionArguments.get(i).getResultMetadata().getDataType(),
+
transformFunctionArguments.get(i).getResultMetadata().isSingleValue());
Review Comment:
Bad AI - `getResultMetadata` is not nullable.
--
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]