Defining Databricks Functions
The following properties are applicable to a Databricks Function object.
Tab |
Property |
Description |
Additional Information |
---|---|---|---|
Name | Specifies the name of the function | ||
Database | Specifies the database to which the function belongs | ||
Temporary | Specifies whether the scope of the function is temporary | A function with the temporary scope is available in the current session. | |
Use Replace Syntax | Specifies whether the REPLACE syntax is executed | Executing the Replace syntax replaces the function with the same name and signature (number of parameters and parameter types) | |
If Not Exists | Specifies that if the function already exists, no exception is thrown, and no action happens | ||
Generate | Specifies whether a DDL statement is generated for the function during forward engineering | ||
Parameters | Parameters | Specifies a list of function parameters | |
Physical Data Type | Specifies physical data type of the function parameters | ||
Options | Is Deterministic | Specifies whether the function is deterministic |
True: Indicates that the function is deterministic and it returns only one outcome for a given set of parameters False: Indicates that the function does not always return the same outcome for a given set of parameters |
Language | Specifies the language of the function | SQL is the only supported language for functions. | |
Return Data Type | Specifies the return data type of a scalar function | ||
Code | Specifies the body of the function using erwin Template Language (TLX) | Use this option to edit RETURN expression or query of the function. | |
Expanded | Expanded Code | Specifies the expanded code of the function |
Copyright © 2024 Quest Software, Inc. |