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

   ### Task Summary
   Several operator specs in `workflow-operator` repeat their fixtures case by 
case:
   
   - `MySQLSourceOpExecSpec` and `PostgreSQLSourceOpExecSpec` register the same 
seventeen executor cases, each spec with its own test executor class and 
descriptor builders. `AsterixDBSourceOpExecSpec` sets its keyword, regex, geo 
and predicate filters field by field in every case.
   - `AggregateOpDescSpec` and `ExtractDateTimeOpDescSpec` each keep their own 
copy of the Python discovery that `PythonTestSupport` provides, and 
`AggregateOpDescSpec` builds, feeds and reads its executor by hand in each case.
   - `SklearnOpDescRegistrySpec` lists the classifier and training registries 
as two tables that repeat the same imports and names, and 
`StableMergeSortOpExecSpec` opens, feeds and closes its executor by hand in 
most cases.
   - The regex and substring-search specs repeat the same match assertions, 
physical-op checks and Python parity harness, and the three set-operation specs 
repeat the same two parity checks.
   
   Shared helpers within each spec family can replace these blocks while every 
test keeps its name, inputs and expected values. About 470 lines go away.
   
   ### Task Type
   - [x] Refactor / Cleanup
   


-- 
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] Share fixtures in operator... aglinxinyuan (via GitHub) via notifications

Reply via email to