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

   ### What changes were proposed in this pull request?
   
   Require Spark DataFrames for native `fit`, `transform` and `evaluate`. 
Reject pandas inputs consistently with `TypeError` before parameter validation, 
schema access or any RPC, and direct callers to convert explicitly with 
`spark.createDataFrame(...)`.
   
   Cover all 27 native estimator/transformer/evaluator classes, fitted models, 
and the unimplemented native Pipeline/CrossValidator entry points. Remove the 
implicit pandas conversion helpers and update the compatibility documentation. 
The vendored Python scalers retain their upstream behavior.
   
   ### Why are the changes needed?
   
   Follow the dataset contract of standard `pyspark.ml` over Spark Connect. The 
deprecated `pyspark.ml.connect` pandas contract should not drive these native 
methods.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Native methods that implicitly uploaded pandas input or collected model 
output now reject pandas input. LogisticRegression fitting also changes from 
`NotImplementedError` to the same `TypeError`. Use `df = 
spark.createDataFrame(pdf)` before `fit(df)`, `transform(df)` or 
`evaluate(df)`, and call `toPandas()` explicitly for a local result.
   
   ### How was this patch tested?
   
   - 3,487 Python offline/Arrow handoff tests passed (8 skipped), including 301 
ML tests covering empty frames, pandas subclasses, vector cells, missing 
columns, validation precedence and rejection without an active session or RPCs.
   - 190 live ML tests passed against Spark 4.3.0, including explicit 
`createDataFrame` conversion before fit, transform and evaluate. Official 
PySpark separately confirmed rejection in representative standard ML methods.
   - 681 Rust unit tests passed; all integration tests compiled with and 
without `wasm-udf`; rustfmt, workspace Clippy with `-D warnings`, and Ruff 
checks passed.
   - Connect-only SQL API introspection found zero gaps after the documented 
transport-only exclusions.
   - Official Spark 4.3.0 Connect suite through the Rust transport: 2,638 
passed, 589 skipped across 87 files, with zero unexpected failures. The three 
artifact/local-cluster files requiring a separate cluster environment were 
excluded.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Codex (GPT-6)
   
   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