HyukjinKwon opened a new pull request, #751:
URL: https://github.com/apache/spark-connect-rust/pull/751

   ### What changes were proposed in this pull request?
   
   PySpark's modules have readers and writers of the Python format that their 
`__all__` does not name:
   - `pyspark.ml.pipeline`: `PipelineReader`, `PipelineWriter`, 
`PipelineModelReader`, `PipelineModelWriter`, `PipelineSharedReadWrite`;
   - `pyspark.ml.tuning`: the readers and writers of `CrossValidator(Model)` 
and `TrainValidationSplit(Model)`;
   - `pyspark.ml.classification`: those of `OneVsRest(Model)`.
   
   `pyspark.ml.connect.pipeline`, `tuning` and `classification` now re-export 
PySpark's own classes. Over the param maps of the native classes (SPARK-61752), 
they save and load the native objects.
   
   ### Why are the changes needed?
   
   The module audit of the native modules against PySpark's found these names 
missing. Before SPARK-61752, PySpark's classes raised `AttributeError: 
'_paramMap'` on native objects, so they could not simply be re-exported.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes: the names above are importable from the native modules.
   
   ### How was this patch tested?
   
   - An offline test that each name is PySpark's class and not in the module's 
`__all__`.
   - An e2e test that `PipelineWriter` saves a native Pipeline and 
`PipelineReader` loads it, with its stage's params and uid.
   - spark-0b's probes of these classes on both clients match official PySpark 
4.3.0.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5.5
   
   This pull request and its description were written by Isaac.
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to