JavascriptUDF
Examples
Python
js_udf = JavascriptUDF(
name="some_function",
returns="STRING",
as_="function(x) { return x.toUpperCase(); }",
args=[{"name": "x", "data_type": "STRING"}],
comment="Converts a string to uppercase",
)YAML
functions:
- name: some_function
returns: STRING
as_: function(x) { return x.toUpperCase(); }
args:
- name: x
data_type: STRING
comment: Converts a string to uppercaseFields
Last updated