docs/src/main/sphinx/sql/show-functions.md
SHOW FUNCTIONS [ FROM schema ] [ LIKE pattern ]
List functions in schema or all functions in the current session path. This
can include built-in functions, functions from a custom
plugin, and .
For each function returned, the following information is displayed:
Use the optional FROM keyword to only list functions in a specific catalog and
schema. The location in schema must be specified as
cataglog_name.schema_name.
{ref}Specify a pattern <like-operator> in the optional LIKE clause to
filter the results to the desired subset.
List all UDFs and plugin functions in the default schema of the example
catalog:
SHOW FUNCTIONS FROM example.default;
List all functions with a name beginning with array:
SHOW FUNCTIONS LIKE 'array%';
List all functions with a name beginning with cf:
SHOW FUNCTIONS LIKE 'cf%';
Example output:
Function | Return Type | Argument Types | Function Type | Deterministic | Description
------------------+-------------+----------------+---------------+---------------+-----------------------------------------
cf_getgroups | varchar | | scalar | true | Returns the current session's groups
cf_getprincipal | varchar | | scalar | true | Returns the current session's principal
cf_getuser | varchar | | scalar | true | Returns the current session's user