Describe the bug
UDAF cannot identify variable parameters,
To Reproduce
if you write a udaf function with variable parameters such as
function_with_variable_parameters(long, string, ...)
and you use it in doris like
mysql> select siteid, function_with_variable_parameters(siteid, username, nickname, "test") from table1 group by siteid;
you will get information like that:
ERROR 1064 (HY000): No matching function with signature: getlastactiveinfo(int(11), varchar(-1), varchar(-1), varchar(-1)).
Reason
miss isVariadic in udaf definition as follow:
public AggregateFunction(FunctionName fnName, List<Type> argTypes, Type retType, Type intermediateType, HdfsURI location, String updateFnSymbol, String initFnSymbol, String serializeFnSymbol, String mergeFnSymbol, String getValueFnSymbol, String removeFnSymbol, String finalizeFnSymbol)
Describe the bug
UDAF cannot identify variable parameters,
To Reproduce
if you write a udaf function with variable parameters such as
function_with_variable_parameters(long, string, ...)
and you use it in doris like
mysql> select siteid, function_with_variable_parameters(siteid, username, nickname, "test") from table1 group by siteid;
you will get information like that:
ERROR 1064 (HY000): No matching function with signature: getlastactiveinfo(int(11), varchar(-1), varchar(-1), varchar(-1)).
Reason
miss isVariadic in udaf definition as follow:
public AggregateFunction(FunctionName fnName, List<Type> argTypes, Type retType, Type intermediateType, HdfsURI location, String updateFnSymbol, String initFnSymbol, String serializeFnSymbol, String mergeFnSymbol, String getValueFnSymbol, String removeFnSymbol, String finalizeFnSymbol)