HyukjinKwon opened a new pull request, #720: URL: https://github.com/apache/spark-connect-rust/pull/720
### What changes were proposed in this pull request? Two clarifications of `docs/compatibility.md` about the native ML classes, after #718 (SPARK-61737): - PySpark's own `pyspark.ml.Pipeline` and the validators of `pyspark.ml.tuning` now fit, transform and save native stages. Their loads (`pyspark.ml.PipelineModel.load`, `pyspark.ml.tuning.CrossValidatorModel.load`) give PySpark's classes of `pyspark.ml`, as they give of PySpark's own stages, since `DefaultParamsReader` resolves each stage of its JVM class. The loads of `pyspark.ml.connect` give the native classes. spark-0b's phase-2 tests assert this. - `extractParamMap()` of a native class has PySpark's params and values, in the order of the names of the params. PySpark's is in the order that they were set, so the defaults of a new object come in the order that its constructors set them. ### Why are the changes needed? They document how the native classes behave after #718. The second is the one difference in the order of a map that the API diff of the native classes against official PySpark leaves: it has the same keys and values for all 110 classes that construct. ### Does this PR introduce _any_ user-facing change? No, documentation only. ### How was this patch tested? By reading. The behaviors were probed against official pyspark-client 4.3.0: the loads by spark-0b's phase-2 tests, and the order of `extractParamMap()` for the 110 constructible classes of the full API, where the keys and values match and the order differs for 93. ### 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]
