aglinxinyuan opened a new pull request, #9321:
URL: https://github.com/apache/texera/pull/9321
### What changes were proposed in this PR?
Consolidates the 9-line pass-through `UnionOpExec` executor class directly
into `UnionOpDesc.scala` and removes the redundant standalone executor file and
duplicate license header (-22 net lines):
-
`common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/union/UnionOpDesc.scala`:
Co-locates `UnionOpExec` with `UnionOpDesc`.
-
`common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/union/UnionOpExec.scala`:
Deleted.
| Surface | Pinned |
| --- | --- |
| Package namespace | `org.apache.texera.amber.operator.union` unchanged |
| Class names & signatures | `UnionOpDesc` and `UnionOpExec` identical |
| Reflection lookup |
`OpExecWithClassName("org.apache.texera.amber.operator.union.UnionOpExec")`
resolves identically |
| Execution semantics | Input tuple pass-through preserved without
modification |
### Any related issues?
Closes #9320.
### How was this PR tested?
- **Tests passed**:
```bash
sbt "WorkflowOperator/testOnly
org.apache.texera.amber.operator.union.UnionOpDescSpec
org.apache.texera.amber.operator.union.UnionOpExecSpec"
```
- `UnionOpDescSpec`: 7/7 tests passed (metadata, port shape,
OpExecWithClassName wiring, partition requirement, instance isolation)
- `UnionOpExecSpec`: 7/7 tests passed (single-element pass-through,
instance preservation, port-agnostic behavior, independent iterators, null
handling, operator executor typing)
- Total: 14/14 tests succeeded.
- **Code formatting & linting**:
```bash
sbt "WorkflowOperator/scalafmtCheck" "WorkflowOperator/Test/scalafmtCheck"
sbt "WorkflowOperator/scalafix --check" "WorkflowOperator/Test/scalafix
--check"
```
All passed cleanly.
- **Net change**: 2 files changed, +8 / -30 (net -22 lines).
### Was this PR authored or co-authored using generative AI tooling?
No.
--
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]