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
{{ message }}
Repository navigation
Commit a7f4386
Browse filesBrowse the repository at this point in the historyBrowse files
feat(udf): enable Python UDF UI parameters end to end (apache#5912)
### What changes were proposed in this PR?
This PR wires the existing Python UDF UI parameter support into the
end-to-end execution path.
It changes:
| Area | Change |
| --- | --- |
| Python UDF descriptors | Adds the `uiParameters` property to Python
UDF, dual-input Python UDF, and Python UDF source operators. |
| Execution wiring | Applies `PythonUdfUiParameterInjector.inject(...)`
before creating Python physical operators. |
| Frontend wiring | Connects the existing UI-parameter sync service to
the code editor and property editor, and renders `uiParameters` with the
existing UI-parameter editor. |
| Operator templates | Adds commented `UiParameter` examples to Python
UDF templates. |
### Any related issues, documentation, discussions?
Part of the Python UDF UI parameter feature split from
`feat/ui-parameter`.
Related tracking issue / stack: apache#5044
Stack order:
1. Frontend UI parameter building blocks: apache#5043
2. Scala backend injection model: apache#5141
3. Python runtime support: apache#5603
4. End-to-end execution wiring: this PR
### How was this PR tested?
Manually +
Commands run:
```bash
sbt --no-server scalafmtAll scalafixAll
sbt --no-server scalafmtCheckAll "scalafixAll --check"
cd amber
ruff check src/main/python src/test/python
ruff format --check src/main/python src/test/python
cd ..
sbt --no-server "WorkflowExecutionService / Test / testOnly org.apache.texera.amber.engine.architecture.pythonworker.PythonWorkflowWorkerStartupConfigSpec"
```
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Me
Copy file name to clipboardExpand all lines: common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/udf/python/DualInputPortsPythonUDFOpDescV2.scala
Copy file name to clipboardExpand all lines: common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/udf/python/PythonUDFOpDescV2.scala
Copy file name to clipboardExpand all lines: common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/udf/python/PythonUdfUiParameterInjector.scala
Copy file name to clipboardExpand all lines: common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/udf/python/source/PythonUDFSourceOpDescV2.scala
Copy file name to clipboardExpand all lines: common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/udf/python/DualInputPortsPythonUDFOpDescV2Spec.scala
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,13 @@ class DualInputPortsPythonUDFOpDescV2Spec extends AnyFlatSpec with Matchers {
Copy file name to clipboardExpand all lines: common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/udf/python/PythonUDFOpDescV2Spec.scala
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,13 @@ class PythonUDFOpDescV2Spec extends AnyFlatSpec with Matchers {
0 commit comments