v.22.6New Feature
Executable User Defined Functions Now Support Parameters
Executable user defined functions now support parameters. Example: SELECT test_function(parameters)(arguments). Closes #37578. #37720 (Maksim Kita).Why it matters
This feature enhances the capabilities of user-defined functions by allowing them to accept parameters. It solves the problem of limited flexibility in UDF usage where functions could not be parameterized, thereby enabling more reusable and customizable query logic, improving query expressiveness and maintainability.How to use it
Users can define executable user-defined functions with parameters and call them using the syntax:SELECT test_function(parameters)(arguments), where parameters specify the function signature and arguments are the values passed at invocation time.