CREATE FUNCTION_SOURCE
Only valid for approved Organizations. Please reach out to us to enable Functions.
Syntax
Description
Defines a new Function Source from a specified file. For Java functions, this file would be a Java JAR. This provides the source for user defined functions. See CREATE FUNCTION for how to create a Function from a Function Source.
See the Creating a Function tutorial for a full example of adding a Function.
Arguments
function_source_name
Name of the Function Source to create. For case-sensitive names, the name must be wrapped in double quotes, otherwise, the lowercased name will be used.
WITH (function_source_parameter = value [, … ])
This clause specifies the Function Source Parameters.
Function Source Parameters
Parameter Name | Description |
---|---|
| Required. Specifies a local filesystem path to import the Function Source from. Function source may include one or many functions. See CREATE FUNCTION. Type: String Valid values: A valid file path in the current user's local filesystem. |
| Optional. Specifies a description for the Function Source. Default value: None Type: String |
Examples
Create a new Function Source
In the below example, a new Function Source is created with the name MySrc
from a jar file available on the local path.
Last updated