Creates an instance (proc) of the user-defined function (UDF) specified by the given command, options, and files, and makes it available for execution. For details on UDFs, see: User-Defined Functions
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
proc_name | string | Name of the proc to be created. Must not be the name of a currently existing proc. | ||||||
execution_mode | string | The execution mode of the proc.
|
||||||
files | map of string to bytes | A map of the files that make up the proc. The keys of the map are file names, and the values are the binary contents of the files. The file names may include subdirectory names (e.g. 'subdir/file') but must not resolve to a directory above the root for the proc. The default value is an empty map ( {} ). | ||||||
command | string | The command (excluding arguments) that will be invoked when the proc is executed. It will be invoked from the directory containing the proc input parameter files and may be any command that can be resolved from that directory. It need not refer to a file actually in that directory; for example, it could be 'java' if the proc is a Java application; however, any necessary external programs must be preinstalled on every database node. If the command refers to a file in that directory, it must be preceded with './' as per Linux convention. If not specified, and exactly one file is provided in input parameter files, that file will be invoked. The default value is ''. | ||||||
args | array of strings | An array of command-line arguments that will be passed to input parameter command when the proc is executed. The default value is an empty array ( [] ). | ||||||
options | map of string to strings | Optional parameters. The default value is an empty map ( {} ).
|
Name | Type | Description |
---|---|---|
proc_name | string | Value of input parameter proc_name. |