1.1版本的doris 使用java udf功能创建function提示unknown function type #11829
zhoulong0517
started this conversation in
RFC
Replies: 2 comments 3 replies
-
it will support on 1.2. we will submit a pr to fix this document typo |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm still getting this "unknown function type" error, has this been fixed? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
doris1.1版本官网说,可以使用java udf
编写 UDF 函数
本小节主要介绍如何开发一个 Java UDF。在 samples/doris-demo/java-udf-demo/ 下提供了示例,可供参考,查看点击这里
示例:
CREATE FUNCTION java_udf_add_one(int) RETURNS int PROPERTIES (
"file"="file:///path/to/java-udf-demo-jar-with-dependencies.jar",
"symbol"="org.apache.doris.udf.AddOne",
"type"="JAVA_UDF"
);
用1.1版本的doris创建这个fuction(使用官网例子创建),提示一下错误信息:
mysql> CREATE FUNCTION java_udf_add_one(int) RETURNS int PROPERTIES (
-> "file"="file:///path/to/java-udf-demo-jar-with-dependencies.jar",
-> "symbol"="org.apache.doris.udf.AddOne",
-> "type"="JAVA_UDF"
-> );
ERROR 1105 (HY000): errCode = 2, detailMessage = unknown function type
Beta Was this translation helpful? Give feedback.
All reactions