aglinxinyuan opened a new pull request, #9323: URL: https://github.com/apache/texera/pull/9323
### What changes were proposed in this PR? `OperatorMetadataGenerator` in `common/workflow-operator` previously contained a manual debug `main` method (which merely printed the generated JSON schema of `CSVScanSourceOpDesc` to standard output) and an unused import of `CSVScanSourceOpDesc`. This PR: 1. Removes the vestigial manual debug `main` method and unused `CSVScanSourceOpDesc` import from `OperatorMetadataGenerator.scala`, decoupling `OperatorMetadataGenerator` from concrete scan operators. 2. Replaces the manual schema verification with an explicit automated unit test in `OperatorMetadataGeneratorSpec.scala` asserting valid JSON schema generation for `CSVScanSourceOpDesc`. ### Any related issues, documentation, discussions? Closes #9322 ### How was this PR tested? Verified locally via sbt in the `WorkflowOperator` project: ```bash sbt -batch "project WorkflowOperator" scalafmtCheck "Test/compile" "testOnly org.apache.texera.amber.operator.metadata.OperatorMetadataGeneratorSpec" ``` Result: - `Checking 336 Scala sources... [success]` - `[info] Total number of tests run: 6` - `[info] Suites: completed 1, aborted 0` - `[info] Tests: succeeded 6, failed 0, canceled 0, ignored 0, pending 0` - `[info] All tests passed.` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Google 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]
