kz930 opened a new pull request, #9154:
URL: https://github.com/apache/texera/pull/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)
   


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