aglinxinyuan opened a new pull request, #9222: URL: https://github.com/apache/texera/pull/9222
### What changes were proposed in this PR? In `common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/hashJoin/HashJoinOpSpec.scala`: 1. Factor repeated join test boilerplate across three test cases into a reusable `runJoin(opDesc, inputSchemas, buildTuples, probeTuples)` helper returning a `JoinResult(tuples, onFinishTuples)`. 2. Manage `HashJoinBuildOpExec` and `HashJoinProbeOpExec` lifecycle with nested `try / finally` blocks to ensure proper executor closure on test pass or failure. 3. Remove mutable `var` fields (`buildOpExec`, `probeOpExec`, `opDesc`) from the test suite class to eliminate mutable cross-test state. 4. Remove the unused `BeforeAndAfter` trait mixin and import. All test inputs, schemas, tuple generation, and assertions are preserved untouched. ### Any related issues, documentation, discussions? Closes #9221 ### How was this PR tested? Verified with sbt unit tests, operator metadata tests, and linters: ```bash sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.hashJoin.HashJoinOpSpec" sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.metadata.*" sbt "WorkflowOperator/scalafmtCheck" "WorkflowOperator/Test/scalafmtCheck" "WorkflowOperator/scalafix --check" "WorkflowOperator/Test/scalafix --check" ``` All 3 tests in `HashJoinOpSpec` passed, all 229 operator metadata tests passed, and all scalafmt / scalafix checks passed. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Antigravity (Gemini 2.5 Pro) -- 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]
