Updated on 2026-11-06 GMT+08:00

Show All Functions

Function

Views all functions in the current project.

Syntax

SHOW [USER|SYSTEM|ALL] FUNCTIONS ([LIKE] regex | [db_name.] function_name); 

Where regex is a regular expression. Refer to the following examples:

Table 1 regex parameter examples

Regular Expression

Matching Meaning

'xpath*'

Matches all function names starting with xpath.

For example: SHOW FUNCTIONS LIKE 'xpath*' matches xpath, xpath_int, xpath_string, and other functions starting with xpath.

'x[a-z]+'

Matches function names starting with x, followed by one or more characters in the range a to z. For example: xpath, xtest, etc.

'x.*h'

Matches function names starting with x, ending with h, with any number of characters (including zero) in between. For example: xpath, xtesth, etc.

Keywords

LIKE: This qualifier is used only for compatibility and has no practical effect.

Precautions

Displays functions that match the given regular expression or function name. If no regular expression or name is provided, all functions are displayed. If USER or SYSTEM is declared, user-defined Spark SQL functions and system-defined Spark SQL functions are displayed respectively.

Example

View all current functions.

SHOW FUNCTIONS;