Replies: 1 comment
-
You need to annotate the argument with See https://github.com/trinodb/trino/blob/master/core/trino-main/src/main/java/io/trino/operator/scalar/MathFunctions.java#L1302 for an example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create my custom function, the function params will input array, but is always show me Unknown type: array issue.
Pls help me.
This is my code:
I had test code,
when I test version 1, function name is udf_test, it will show me correct result, Please get result by pic_2:
When I test version 2, function name is udf_test_v2, it will show me fail result, Please get result by pic_3:
for two function, the difference is that the third parameter topic's SqlType is different.
I had read docs for SqlType, I want to use StandardTypes.ARRAY for input param. But is show me fail result.
my trino version is 400, Pls help me.
I'm very worried. Thanks
Beta Was this translation helpful? Give feedback.
All reactions