walterddr commented on issue #8424:
URL: https://github.com/apache/pinot/issues/8424#issuecomment-1103232509

   Initially I think we should wrap `@ScalarFunction` annotated methods into a 
`BuiltInScalarFunction implements FunctionDefinition` where all the interfaces 
are defined to support more complex function signatures. 
   
   Similar architecture is adopted in many sql-like systems to support 
UDF/UDAF/UDTF etc. thus I think the design should be sufficient. I will create 
a separate design doc for the `FunctionDefinition` interface as well as how 
they will used for 
   - dynamic arg/return type 
   - stateful initialization (for example one of the arguments are literal 
expression)
   - overloading and implicit type conversion if no exact arg type is found. 
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to