Show functions
Showing the available functions can be done with SHOW FUNCTIONS.
For general information about the SHOW command, see the SHOW page.
Syntax
For full details about the syntax descriptions, see the Operations Manual → Administration command syntax.
| Action | Syntax | ||
|---|---|---|---|
Show functions, either all or only built-in or user-defined |
|
||
Show functions that the current user can execute |
|
||
Show functions that a specified user can execute |
|
|
When using the |
Return columns
SHOW FUNCTIONS will produce a table with the following columns:
| Column | Description | Type |
|---|---|---|
|
The name of the function. Default Output |
|
|
The function category, for example |
|
|
The function description. Default Output |
|
|
The signature of the function. |
|
|
Whether the function is built-in or user-defined. |
|
|
List of the arguments for the function, as map of strings and booleans with |
|
|
The return value type. |
|
|
Whether the function is aggregating or not. |
|
|
List of roles permitted to execute this function.
Is |
|
|
List of roles permitted to use boosted mode when executing this function.
Is |
|
|
Whether the function is deprecated. |
|
|
The replacement function to use in case of deprecation; otherwise |
|
Examples
SHOW FUNCTIONS
SHOW FUNCTIONS YIELD *
SHOW FUNCTIONS YIELD name, signature
SHOW FUNCTIONS using WHERESHOW FUNCTIONS YIELD name
WHERE name CONTAINS 'vector'
RETURN count(name) AS numVectorFunctions
SHOW FUNCTIONS can also be filtered with the BUILT IN and USER DEFINED keywords.
SHOW FUNCTIONS using WHERE and the BUILT IN keywordSHOW BUILT IN FUNCTIONS YIELD name, isBuiltIn
WHERE name STARTS WITH 'a'
Functions can also be filtered on whether a user can execute them.
This filtering is only available through the EXECUTABLE clause and not through the WHERE clause.
This is due to using the user’s privileges instead of filtering on the available output columns.
There are two options, how to use the EXECUTABLE clause.
The first option, is to filter for the current user:
SHOW FUNCTIONS EXECUTABLE BY CURRENT USER YIELD name, category, description, rolesExecution, rolesBoostedExecution
LIMIT 5
| name | category | description | rolesExecution | rolesBoostedExecution |
|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rows: 5 |
||||
Notice that the two roles columns are empty due to missing the SHOW ROLE privilege.
The second option, is to filter for a specific user:
SHOW FUNCTIONS EXECUTABLE BY jake