The GitHub Actions job "Required Checks" on texera.git/main has failed. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: 4b393c4ac559932e90919aa3019a9aa630dc0767 / Xinyuan Lin <[email protected]> refactor(workflow-operator): share binary set op executors (#9207) ### What changes were proposed in this PR? `DifferenceOpExec`, `IntersectOpExec`, and `SymmetricDifferenceOpExec` each restated the identical two-input buffering logic: allocating two `mutable.HashSet[Tuple]` sets on `open()`, clearing them on `close()`, routing tuples from port 0 to the left set and port 1 to the right set on `processTuple()`, and waiting for both input ports to finish on `onFinish()`. A new abstract class, `BinarySetOpExec`, now owns this lifecycle. Subclasses only supply `protected def combine(leftSet: collection.Set[Tuple], rightSet: collection.Set[Tuple]): Iterator[TupleLike]`, which sees the buffered tuples read-only. To keep operator hierarchy clean, the binary set operators (`difference`, `intersect`, and `symmetricDifference`) and their tests are organized into the `org.apache.texera.amber.operator.set` package alongside `BinarySetOpExec`. | Surface | Pinned | | --- | --- | | `open` / `close` | clear `leftSet` and `rightSet`, reset `exhaustedCounter`; a reused instance starts each cycle empty | | `processTuple` | buffer port 0 into `leftSet` and port 1 into `rightSet` | | `onFinish` | return empty until both input ports finish, then delegate to `combine` | ### Any related issues, documentation, discussions? Closes #9206. ### How was this PR tested? - `sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.set.*"`: all 40 tests across 6 suites pass, including a new `DifferenceOpExecSpec` case that runs one executor through two open/close cycles with different tuples. - `sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.metadata.*"`: all 229 tests across 9 suites pass (verifies operator reflection and registration). - Mutation checks: breaking `exhaustedCounter == 2` to `3` in `BinarySetOpExec` fails 10 tests across all three executor suites; dropping the `exhaustedCounter = 0` reset in `open()` fails the new reuse test; restoring returns tests to green. - `sbt "WorkflowOperator/scalafmtCheck" "WorkflowOperator/Test/scalafmtCheck" "WorkflowOperator/scalafix --check" "WorkflowOperator/Test/scalafix --check"` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Antigravity (Gemini 3.8 Flash, Claude Opus 5.5) Report URL: https://github.com/apache/texera/actions/runs/41399374682 With regards, GitHub Actions via GitBox
