carloea2 opened a new pull request, #9339:
URL: https://github.com/apache/texera/pull/9339
### What changes were proposed in this PR?
Java UDFs can declare typed parameters and edit their values in the existing
Parameters panel. For example, inside `JavaUDFOpExec`:
```java
@org.apache.texera.amber.operator.udf.java.UiParameter("count")
private int count;
```
The shared model, validation, type manifest, editor, synchronization, and
resource binding serve Python, R, and Java. Java has a separate syntax parser
and javac adapter that validates saved metadata and inserts field initializers
before the constructor runs. Supports six scalar types, boxed fields, and
model/dataset version selectors on string fields.
+885 / -27 LOC (+858 net): 416 implementation, 394 tests, 28 documentation,
20 build/dependencies.
### Any related issues, documentation, discussions?
Closes #9337.
[Java UDF
usage](https://github.com/carloea2/texera/blob/f7cca33003c9f9a9b4d7cf2b9a92842f43eea884/docs/reference/operators/user-defined-functions/java/java-udf.md)
· [UI parameter
architecture](https://github.com/carloea2/texera/blob/f7cca33003c9f9a9b4d7cf2b9a92842f43eea884/docs/contribution-guidelines/ui-parameter-architecture.md)
### How was this PR tested?
| Check | Result |
| --- | --- |
| Full frontend suite | 7,186 passed; one existing skip |
| Backend UDF package | 240 passed across 15 suites |
| Browser-generated source and edited values → Java descriptor → ExecFactory
→ JVM fields and real tuple | Passed |
| Scala lint/format and frontend format/lint | Passed |
Backend tests cover shared metadata/value contracts, actual javac execution,
constructor initialization, isolation, invalid input, exact long values,
timestamps, and database-backed model/dataset mount binding with one and two
workers.
```sh
sbt "set DAO / Compile / sourceGenerators := Seq.empty"
"WorkflowOperator/testOnly *udf.*"
sbt "scalafixAll --check" scalafmtCheckAll
```
Local backend setup reused ignored generated jOOQ sources; the
source-generator override is local. The committed test configuration forks the
JVM so javac sees its full classpath.
From `frontend/`, with `NG_BUILD_MAX_WORKERS=2`, `RAYON_NUM_THREADS=2`, and
a local Vitest config limiting workers to two:
```sh
node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng.js test
--watch=false --progress=false --coverage --coverage-reporters=lcovonly
--runner-config=C:/Users/carlo/Documents/Codex/2026-11-03/can/work/ui-proof/vitest-local.config.mts
node .yarn/releases/yarn-4.14.1.cjs format:ci
```
Chromium, 1600 × 1000 viewport: Java UDF properties → Parameters → Add
parameter; add integer/string/boolean rows, enter `42` / `sample run` / `true`,
and reload. Verified inserted Java fields, preserved values, and locked
Name/Type controls.
| Before | After |
| --- | --- |
| 
| 
|
Both captures use the feature frontend: before with baseline Java metadata,
after with metadata exported by the actual Scala generator. HTTP fixtures and
an isolated in-memory Yjs server supply workflow/authentication and reload
persistence. Execution was independently verified with the browser-generated
source and values through the real JVM path. [Evidence
details](https://raw.githubusercontent.com/carloea2/texera/30a16fde7d22849d3efb64c52eff3288c18a6e51/EVIDENCE.txt).
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: OpenAI Codex (GPT-6)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]