aglinxinyuan opened a new pull request, #9204: URL: https://github.com/apache/texera/pull/9204
### What changes were proposed in this PR? The 48 Python visualization descriptors each restated the same output contract: a `getOutputSchemas` override returning one `html-content` STRING column on the single output port, and `producesDataFrame = false` so the exported script does not print the chart as a leaf DataFrame. A new trait, `PythonVisualizationOpDesc`, now declares both, and the 48 descriptors extend it. The 41 Plotly charts keep `with PlotlyStandaloneCode`. | Surface | Pinned | | --- | --- | | output schema | one `html-content` STRING column on the single output port, independent of the input schemas | | exported script | not printed as a leaf DataFrame | | operator metadata | JSON schema and operator info unchanged for all 166 operators | The trait has no fields, so no JSON schema changes. `VisualizationOutputSchemaSpec` still sweeps every registered chart and remains the guard; only its doc comment changed, to name the trait. ### Any related issues, documentation, discussions? Closes #9203. ### How was this PR tested? - `sbt "WorkflowOperator/test"`: each of its 2,770 tests (296 suites) has the same result before and after this change, compared test by test from the JUnit XML reports. Three tests fail on main and on this branch alike on the Windows machine used (a locked temp file in `FileScanSourceOpDescSpec`, a mount path in `PythonUdfUiParameterSupportSpec`, an exported-script comparison in `UrlVizOpDescSpec`); none touches the changed code. - `sbt "WorkflowCompilingService/testOnly org.apache.texera.amber.translator.*"`: 41 tests pass before and after. - The JSON schema and operator info of all 166 registered operators, dumped before and after, are identical. - `sbt "WorkflowOperator/scalafmtCheck" "WorkflowOperator/Test/scalafmtCheck" "WorkflowOperator/scalafix --check" "WorkflowOperator/Test/scalafix --check"` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5) -- 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]
