You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/distributed_python/usage.rst
-3
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
Creating and running UDFs
2
2
-------------------------
3
3
4
-
For best performance, we recommend that you create a script using CREATE SCRIPT and then use this script within a SELECT statement. Embedding the script within SQL in this way provides the best performance and scalability.
5
-
6
4
In the CREATE SCRIPT command, you must define the type of input and output values.
7
5
There are two types of UDF inputs (set and scalar) and two types of UDF outputs (returns and emits).
8
6
These can be combined as needed to suite your use case.
@@ -19,7 +17,6 @@ These can be combined as needed to suite your use case.
19
17
20
18
- **EMITS** Specifies that the script can create (emit) multiple result rows (tuples).
21
19
22
-
You can define the data types of input and output parameters to specify the conversion between internal data types and the database SQL data types. If you do not specify the data types, the script has to handle that dynamically.
23
20
Each UDF script must contain the main function run(). This function is called with a parameter providing access to the input data of Exasol. If your script processes multiple input tuples (using SET), you can iterate through the single tuples using this parameter.
24
21
You can specify an ORDER BY clause either when creating a script or when calling it. This clause sorts the processing of the groups of SET input data. If it is necessary for the algorithm, you should specify this clause when creating the script to avoid wrong results due to misuse.
0 commit comments