Categories:
Account & Session DDL

SHOW FUNCTIONS

Lists all the native (i.e. system-defined/built-in) scalar functions provided by Snowflake, as well as any UDFs that have been created for your account.

For more information, see SQL Function Reference and UDFs (User-Defined Functions).

See also:
SHOW USER FUNCTIONS

Syntax

SHOW FUNCTIONS [ LIKE '<pattern>' ]

Parameters

LIKE 'pattern'

Filters the command output by object name. The filter uses case-insensitive pattern matching, with support for SQL wildcard characters (% and _).

For example, the following patterns return the same results:

... LIKE '%testing%' ...
... LIKE '%TESTING%' ...

Usage Notes

  • The command does not require a running warehouse to execute.

  • The command returns a maximum of 10K records for the specified object type, as dictated by the access privileges for the role used to execute the command; any records above the 10K limit are not returned, even with a filter applied.

    To view results for which more than 10K records exist, query the corresponding view (if one exists) in the Information Schema.

  • To post-process the output of this command, you can use the RESULT_SCAN function, which treats the output as a table that can be queried.

Examples

Show all functions:

SHOW FUNCTIONS;

------------+-------------------+-------------+------------+--------------+---------+-------------------+-------------------+-------------------------------------------------------------------------------------+------------------------------------------------------------+
 created_on |       name        | schema_name | is_builtin | is_aggregate | is_ansi | min_num_arguments | max_num_arguments |                                      arguments                                      |                      description                           |
------------+-------------------+-------------+------------+--------------+---------+-------------------+-------------------+-------------------------------------------------------------------------------------+------------------------------------------------------------+
            | !=                |             | Y          | N            | Y       | 2                 | 2                 | !=(ANY, ANY) RETURN BOOLEAN, !=(ROW(ANY), ROW(ANY)) RETURN BOOLEAN                  | Checks if the first value is not equal to the second value |
            | %                 |             | Y          | N            | N       | 2                 | 2                 | %(NUMBER, NUMBER) RETURN NUMBER, %(FLOAT, FLOAT) RETURN FLOAT                       | Computes modulo of two numbers                             |
...
...
...
            | AND               |             | Y          | N            | Y       | 2                 | 2                 | AND(BOOLEAN, BOOLEAN) RETURN BOOLEAN                                                | returns TRUE if both inputs are TRUE, FALSE otherwise      |
...
...
...
            | NOT               |             | Y          | N            | Y       | 1                 | 1                 | NOT(BOOLEAN) RETURN BOOLEAN                                                         | returns TRUE if input is TRUE, FALSE otherwise             |
...
...
...
            | OR                |             | Y          | N            | Y       | 2                 | 2                 | OR(BOOLEAN, BOOLEAN) RETURN BOOLEAN                                                 | returns TRUE if either input is TRUE, FALSE otherwise      |
...
...
...
            | SQUARE            |             | Y          | N            | Y       | 1                 | 1                 | SQUARE(NUMBER(38,0)) RETURN NUMBER(38,0), SQUARE(FLOAT) RETURN FLOAT                | Compute the square of the input expression.                |
...
...
...
            | TYPEOF            |             | Y          | N            | N       | 1                 | 1                 | TYPEOF(ANY) RETURN VARCHAR(268435456)                                               | returns the SQL type of its input argument as a string     |
...
...
...
------------+-------------------+-------------+------------+--------------+---------+-------------------+-------------------+-------------------------------------------------------------------------------------+------------------------------------------------------------+

Show only functions matching the specified regular expression:

SHOW FUNCTIONS LIKE 'SQUARE';

------------+-------------------+-------------+------------+--------------+---------+-------------------+-------------------+-------------------------------------------------------------------------------------+------------------------------------------------------------+
 created_on |       name        | schema_name | is_builtin | is_aggregate | is_ansi | min_num_arguments | max_num_arguments |                                      arguments                                      |                      description                           |
------------+-------------------+-------------+------------+--------------+---------+-------------------+-------------------+-------------------------------------------------------------------------------------+------------------------------------------------------------+
            | SQUARE            |             | Y          | N            | Y       | 1                 | 1                 | SQUARE(NUMBER(38,0)) RETURN NUMBER(38,0), SQUARE(FLOAT) RETURN FLOAT                | Compute the square of the input expression.                |
------------+-------------------+-------------+------------+--------------+---------+-------------------+-------------------+-------------------------------------------------------------------------------------+------------------------------------------------------------+