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.
For more information, see https://phoenix.apache.org/udf.html.