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

   ### Task Summary
   `SklearnClassifierOpDesc` and `SklearnTrainingOpDesc` independently declare 
the same four configuration fields (`target`, `countVectorizer`, `text`, 
`tfidfTransformer`) with identical Jackson/JSON-schema annotations, plus a 
byte-identical `getOutputSchemas`. This is roughly 50 lines of copy-pasted code 
that can drift between the two classes. Extract the shared fields, the 
`@JsonIgnore` model-name/import hooks, and `getOutputSchemas` into a single 
abstract base class so each descriptor keeps only what genuinely differs (its 
`generatePythonCode` and `operatorInfo`). The 51 leaf subclasses already 
inherit these fields, so the generated operator schema is unchanged.
   ### Task Type
   - [x] Refactoring


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