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/user_guide/user_guide.md
+53Lines changed: 53 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,59 @@ Add `returnsTable()` to the builder if you want the script to return a table.
200
200
201
201
See section ["Running Scripts"](#executing-scripts) for information about executing scripts.
202
202
203
+
### Creating UDF Scripts
204
+
205
+
User defined function (UDF) scripts allow you to run external applications that are implemented using high-level languages such as Java, Python or Lua.
206
+
207
+
To create an UDF script you need the following:
208
+
209
+
* UDF script name
210
+
* Programming Language
211
+
* Input type — SCALAR or SET
212
+
* Columns emitted as return type
213
+
* Optional bucket filesystem content
214
+
215
+
For example, the following code:
216
+
217
+
```java
218
+
final UdfScript udfScript = schema.createUdfBuilder("UDF_SCRIPT")
0 commit comments