Creating and using User-Defined functions (UDFs) in Phoenix
With a user-defined function (UDF), you can extend the functionality of your SQL statements by creating scalar functions that operate on a specific tenant.
For details about creating, dropping, and how to use UDFs for Phoenix, see User-defined functions on the Apache website.