Defining Snowflake Stored Procedures

The following properties are applicable to a Snowflake Procedures object.

Tab

Property

Description

Additional Information

General

Return Data Type Specifies the procedure's return data type  
Not Null Specifies whether the function can return null values  
Language Type Specifies that the stored procedure contains JavaScript code  
Call Return Type Specifies the procedure's behavior when it is called with null inputs  
Volatile Or Immutable Specifies the procedure's behavior while returning results

Immutable: Indicates that the procedure always returns the same results.

Volatile: Indicates that for same arguments, the procedure can return different results on successive calls. The procedure must be evaluated for every input row.

Execution Type Specifies the privileges that must be used to execute the procedure  
As Stored_Procedure Definition Specifies the JavaScript code executed by the stored procedure Note: Ensure that you validate the code as Snowflake does not validate the code at the procedure creation time.

Parameter Options

Name Specifies the procedure parameter's name  
Physical Data Type Specifies the parameter's data type