aglinxinyuan opened a new issue, #9236:
URL: https://github.com/apache/texera/issues/9236

   ### Task Summary
   
   In `UnnestStringOpExecSpec.scala`, four test cases repeat the 15-line 
executor setup (`UnnestStringOpExec`, descriptor JSON serialization, schema 
lookup, `open()`, and tuple processing) alongside manual 
`processedTuple.next().getField("split")` assertions. In addition, two tests 
omit calling `opExec.close()`, and the test suite maintains mutable `var` state 
across tests alongside an unnecessary `BeforeAndAfter` trait mixin.
   
   Factor the execution and schema enforcement sequence into a reusable 
`unnest(attr, delimiter, targetTuple)` test helper that manages executor 
lifecycle with `try / finally`, eliminates mutable suite state, and preserves 
all unnest splitting assertions and invariants.
   
   ### Task Type
   
   - [x] Refactor / Cleanup
   - [x] Test addition or improvement
   


-- 
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]

  • [I] Factor unnest execu... aglinxinyuan (via GitHub) via notifications

Reply via email to