The GitHub Actions job "Benchmarks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
1b515adebf7258d1a08f87e53d6c1749f9adf3cd / Kary Zheng 
<[email protected]>
feat(workflow-operator): leave explanatory comments out of exported Python 
(#9154)

### What changes were proposed in this PR?

The Python that "Export to Python" writes carried notes meant for
whoever maintains the generator: why a frame is copied, why a row is
dropped before scoring, why an empty cell keeps its row. Someone running
the exported script does not need them, and they made the script longer
to read. This PR takes those comments out of the exported code in 24
operators, and keeps a one or two line note in Scala above the string
where the reason is worth keeping.

- Machine learning: the sklearn estimators' shared training, testing and
fit-and-score code, Linear Regression, and the Machine Learning Scorer.
- Hugging Face: Iris Logistic Regression, Sentiment Analysis, Spam SMS
Detection, Text Summarization.
- Visualization: Bar, Box/Violin, Bubble, Bullet, Choropleth, Contour,
Dendrogram, Gauge, Hierarchy, Histogram 2D, Icicle, Radar, Tree Plot,
URL Visualizer.
- Unnest String.

Only comments go. The translator's own markers stay: the `# [Operator]`
heading over each section, `# --- Output ---`, and the `# TODO` it
writes for an operator it cannot export yet. The Python that operators
run inside the engine is not touched.

### Any related issues, documentation, discussions?

The comments came in with the export PRs #8365, #8367, #8368, #8504 and
#8340.

#9035 also changes Unnest String's export. Whichever of the two merges
second keeps the other's change.

### How was this PR tested?

No generated statement changes, only comment lines. Running the
verification suite before and after, the 1,098 scripts it generates for
142 operators are identical once comment lines and temporary paths are
set aside, and none of them has an explanatory comment left. All of
`WorkflowOperator/test` passes (2,912 tests), as do `scalafmtCheck` and
`scalafixAll --check`.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/41276798327

With regards,
GitHub Actions via GitBox

Reply via email to