CREATE AGGREGATE FUNCTION MY_WINDOW_SUM_INT(string)
RETURNS Int
properties
(
“analytic” = “true”,
“symbol” = “com.starrocks.udf.sample.WindowSumInt”,
“type” = “StarrocksJar”,
“file” = “http://192.168.199.134/udf-1.0-SNAPSHOT-jar-with-dependencies.jar”
);
报错:
UDF class ‘com.starrocks.udf.sample.WindowSumInt’ method ‘update’ parameter arg1[java.lang.Integer] type does not match java.lang.String
java里面inputs类型改成String
public void windowUpdate(State state,
int peer_group_start, int peer_group_end,
int frame_start, int frame_end,
String[] inputs) throws ParseException