aglinxinyuan opened a new pull request, #9237:
URL: https://github.com/apache/texera/pull/9237

   ### What changes were proposed in this PR?
   
   In 
`common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/unneststring/UnnestStringOpExecSpec.scala`:
   1. Factor repeated unnest execution and tuple mapping boilerplate across 
test cases into a reusable `unnest(delimiter, attribute, targetTuple)` helper 
returning `List[String]`.
   2. Encapsulate single-value unnesting in a dedicated `unnestValue(delimiter, 
value)` helper that feeds regex presets and custom regex delimiters through the 
common pipeline.
   3. Manage `UnnestStringOpExec` lifecycle with `try / finally` blocks across 
all tests to ensure proper executor closure on both pass and failure.
   4. Eliminate mutable `var` suite state (`opExec`, `opDesc`, `outputSchema`), 
removing the mutable `before` lifecycle block and dropping the `BeforeAndAfter` 
trait mixin.
   
   All 22 test cases, preset regex patterns, custom delimiter validations, and 
assertions are preserved untouched.
   
   ### Any related issues, documentation, discussions?
   
   Closes #9236
   
   ### How was this PR tested?
   
   Verified with sbt unit tests, operator metadata tests, and linters:
   ```bash
   sbt "WorkflowOperator/testOnly 
org.apache.texera.amber.operator.unneststring.*"
   sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.metadata.*"
   sbt "WorkflowOperator/scalafmtCheck" "WorkflowOperator/Test/scalafmtCheck" 
"WorkflowOperator/scalafix --check" "WorkflowOperator/Test/scalafix --check"
   ```
   All 22 tests in `UnnestStringOpExecSpec` and `UnnestStringOpDescSpec` 
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]

Reply via email to