侧边栏壁纸
博主头像
AllInOne博主等级

随风来,随风去

  • 累计撰写 45 篇文章
  • 累计创建 27 个标签
  • 累计收到 2 条评论

目 录CONTENT

文章目录

Starrocks自定义函数(实战篇)

AllInOne
2024-05-15 / 0 评论 / 0 点赞 / 141 阅读 / 120 字
温馨提示:
点赞-关注-不迷路。

自定义全局函数

CREATE GLOBAL FUNCTION _function_name(string) 
RETURNS string
PROPERTIES (
    "symbol" = "com.xx.xx", 
    "type" = "StarrocksJar",
    "file" = "http://xx:8889/udf/xx-udf-1.0-SNAPSHOT-jar-with-dependencies.jar"
);
SHOW GLOBAL FUNCTIONS\G
DROP GLOBAL FUNCTION _function_name(string);

自定义数据库内函数

use dbname;
CREATE FUNCTION _function_name(string) 
RETURNS string
PROPERTIES (
    "symbol" = "com.xx.xx", 
    "type" = "StarrocksJar",
    "file" = "http://xx:8889/udf/xx-udf-1.0-SNAPSHOT-jar-with-dependencies.jar"
);
show full functions in dbname\G
DROP FUNCTION _function_name(string);
0

评论区