This is an automated email from the ASF dual-hosted git repository.

Yicong-Huang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-texera-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 7466c8f9 docs: sync from apache/texera@a7f4386
7466c8f9 is described below

commit 7466c8f9df988fd47b68583b67e0cb3ed55d51e9
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Aug 10 18:50:37 2026 +0000

    docs: sync from apache/texera@a7f4386
    
    Automated sync of docs/ -> content/docs/latest/ from apache/texera.
    
    Source commit: a7f4386ba7ccb58155e44f79c8e10a25e60d2208
    
    Workflow run: https://github.com/apache/texera/actions/runs/31421097093
---
 .../python/1-out-python-udf.md                       |  5 +++++
 .../user-defined-functions/python/2-in-python-udf.md |  5 +++++
 .../user-defined-functions/python/_index.md          | 20 ++++++++++++++++++++
 .../user-defined-functions/python/python-udf.md      |  5 +++++
 4 files changed, 35 insertions(+)

diff --git 
a/content/docs/latest/reference/operators/user-defined-functions/python/1-out-python-udf.md
 
b/content/docs/latest/reference/operators/user-defined-functions/python/1-out-python-udf.md
index 191d0bb1..fc993ef5 100644
--- 
a/content/docs/latest/reference/operators/user-defined-functions/python/1-out-python-udf.md
+++ 
b/content/docs/latest/reference/operators/user-defined-functions/python/1-out-python-udf.md
@@ -47,12 +47,17 @@ tags: [user-defined-functions, python]
 | Columns |  | List<Attribute> | - | The columns of the source |
 | ↳ Attribute Name | ✓ | String | - |  |
 | ↳ Attribute Type | ✓ | string, integer, long, double, boolean,<br>timestamp, 
binary, large_binary | - |  |
+| Parameters |  | List<UiUDFParameter> | - | Values inferred from active 
`self.UiParameter(...)` calls.<br>See [UI parameters](../#ui-parameters). |
 
 #### Default Code Template
 
 **Python script**
 
 ```python
+# Define UiParameter inside GenerateOperator.open().
+# Example: self.count = self.UiParameter("count", AttributeType.INT).value
+# See the Python UDF operator documentation for supported types and behavior.
+#
 # from pytexera import *
 # class GenerateOperator(UDFSourceOperator):
 # 
diff --git 
a/content/docs/latest/reference/operators/user-defined-functions/python/2-in-python-udf.md
 
b/content/docs/latest/reference/operators/user-defined-functions/python/2-in-python-udf.md
index 83757a73..fbb26d5d 100644
--- 
a/content/docs/latest/reference/operators/user-defined-functions/python/2-in-python-udf.md
+++ 
b/content/docs/latest/reference/operators/user-defined-functions/python/2-in-python-udf.md
@@ -48,6 +48,7 @@ tags: [user-defined-functions, python]
 | Extra output column(s) |  | List<Attribute> | - | Name of the newly added 
output columns that the<br>UDF will produce, if any |
 | ↳ Attribute Name | ✓ | String | - |  |
 | ↳ Attribute Type | ✓ | string, integer, long, double, boolean,<br>timestamp, 
binary, large_binary | - |  |
+| Parameters |  | List<UiUDFParameter> | - | Values inferred from active 
`self.UiParameter(...)` calls.<br>See [UI parameters](../#ui-parameters). |
 
 #### Default Code Template
 
@@ -55,6 +56,10 @@ tags: [user-defined-functions, python]
 
 ```python
 # Choose from the following templates:
+#
+# Define UiParameter inside open() of ProcessTupleOperator, 
ProcessBatchOperator, or ProcessTableOperator.
+# Example: self.count = self.UiParameter("count", AttributeType.INT).value
+# See the Python UDF operator documentation for supported types and behavior.
 # 
 # from pytexera import *
 # 
diff --git 
a/content/docs/latest/reference/operators/user-defined-functions/python/_index.md
 
b/content/docs/latest/reference/operators/user-defined-functions/python/_index.md
index 8283c8bd..2d1f888f 100644
--- 
a/content/docs/latest/reference/operators/user-defined-functions/python/_index.md
+++ 
b/content/docs/latest/reference/operators/user-defined-functions/python/_index.md
@@ -49,3 +49,23 @@ tags: [user-defined-functions, python]
 | [Python UDF](python-udf/) | User-defined function operator in Python script |
 
 **Total**: 5 operators
+
+## UI parameters
+
+The Python UDF, 2-in Python UDF, and 1-out Python UDF operators can expose 
values in the property panel. Declare each value with `self.UiParameter(...)` 
inside the UDF class's `open()` method, then use its `.value` in later methods.
+
+```python
+from pytexera import *
+
+class ProcessTupleOperator(UDFOperatorV2):
+    @overrides
+    def open(self):
+        self.count = self.UiParameter("count", AttributeType.INT).value
+
+    @overrides
+    def process_tuple(self, tuple_: Tuple, port: int):
+        # self.count contains the value entered in the property panel.
+        yield tuple_
+```
+
+Active calls are inferred from the script; commented-out calls are ignored. 
The supported classes are `ProcessTupleOperator`, `ProcessBatchOperator`, 
`ProcessTableOperator`, and `GenerateOperator`. Supported types are `STRING`, 
`INT`/`LONG`, `DOUBLE`, `BOOL`, and `TIMESTAMP`. Empty strings are valid for 
`STRING`; all other types require a non-empty value before execution.
diff --git 
a/content/docs/latest/reference/operators/user-defined-functions/python/python-udf.md
 
b/content/docs/latest/reference/operators/user-defined-functions/python/python-udf.md
index f8d2fad6..430f66ff 100644
--- 
a/content/docs/latest/reference/operators/user-defined-functions/python/python-udf.md
+++ 
b/content/docs/latest/reference/operators/user-defined-functions/python/python-udf.md
@@ -48,6 +48,7 @@ tags: [user-defined-functions, python]
 | Extra output column(s) |  | List<Attribute> | - | Name of the newly added 
output columns that the<br>UDF will produce, if any |
 | ↳ Attribute Name | ✓ | String | - |  |
 | ↳ Attribute Type | ✓ | string, integer, long, double, boolean,<br>timestamp, 
binary, large_binary | - |  |
+| Parameters |  | List<UiUDFParameter> | - | Values inferred from active 
`self.UiParameter(...)` calls.<br>See [UI parameters](../#ui-parameters). |
 
 #### Default Code Template
 
@@ -55,6 +56,10 @@ tags: [user-defined-functions, python]
 
 ```python
 # Choose from the following templates:
+#
+# Define UiParameter inside open() of ProcessTupleOperator, 
ProcessBatchOperator, or ProcessTableOperator.
+# Example: self.count = self.UiParameter("count", AttributeType.INT).value
+# See the Python UDF operator documentation for supported types and behavior.
 # 
 # from pytexera import *
 # 

Reply via email to