You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2019/07/19 06:07:50 UTC

[GitHub] [incubator-doris] WingsGo opened a new issue #1511: UDAF variable parameters support bug

WingsGo opened a new issue #1511: UDAF variable parameters support bug
URL: https://github.com/apache/incubator-doris/issues/1511
 
 
   **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)`
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org