This is an automated email from the ASF dual-hosted git repository.
yashmayya pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 47efe3eaa3b Fix error message for ScalarTransformFunctionWrapper when
no matching function signature is found (#16994)
47efe3eaa3b is described below
commit 47efe3eaa3bbb0c7c923f69367fe31343f3db318
Author: Yash Mayya <[email protected]>
AuthorDate: Fri Oct 10 12:23:17 2025 -0700
Fix error message for ScalarTransformFunctionWrapper when no matching
function signature is found (#16994)
---
.../core/operator/transform/function/TransformFunctionFactory.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/TransformFunctionFactory.java
b/pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/TransformFunctionFactory.java
index ff5c78caf0d..bee5ae4b652 100644
---
a/pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/TransformFunctionFactory.java
+++
b/pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/TransformFunctionFactory.java
@@ -20,6 +20,7 @@ package org.apache.pinot.core.operator.transform.function;
import com.google.common.annotations.VisibleForTesting;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collections;
import java.util.EnumMap;
import java.util.HashMap;
@@ -356,7 +357,9 @@ public class TransformFunctionFactory {
if (functionInfo == null) {
if (FunctionRegistry.contains(canonicalName)) {
throw new BadQueryRequestException(
- String.format("Unsupported function: %s with %d arguments",
functionName, numArguments));
+ numArguments > 0 ? String.format("Unsupported function: %s
with arguments of type: %s", functionName,
+ Arrays.toString(argumentDataTypes))
+ : String.format("Unsupported function: %s with 0
arguments", functionName));
} else {
throw new BadQueryRequestException(String.format("Unsupported
function: %s", functionName));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]