DDL for user-defined functions, external functions, and stored procedures¶
UDFs (user-defined functions) and stored procedures are two programming constructs that allow you to extend Snowflake SQL.
UDF management¶
UDFs can be used to perform operations that are not available via the system-defined functions provided by Snowflake. Snowflake provides the following DDL commands for creating and managing UDFs:
Note
UDFs can contain Java, JavaScript, Python, and SQL; however, DDL and DML operations are not supported in UDFs.
External function management¶
External functions can be used to perform operations that are not available via the system-defined functions provided by Snowflake. External functions are a type of UDF, but their syntax is different enough that they have their own CREATE, ALTER, and SHOW statements.
Snowflake provides the following DDL commands for creating and managing external functions:
External functions use API integrations. Snowflake provides the following DDL commands for creating and managing API integrations:
Stored procedure management¶
Snowflake provides the following DDL commands for creating and managing stored procedures:
In addition, Snowflake provides the following command for using stored procedures: