[ 
https://issues.apache.org/jira/browse/SPARK-61391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon reassigned SPARK-61391:
------------------------------------

    Assignee: Hyukjin Kwon

> Send an explicit None param as a null literal, and raise 
> CANNOT_INFER_ARRAY_ELEMENT_TYPE for an empty list param, in the native ML 
> classes of the Python client as PySpark does
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-61391
>                 URL: https://issues.apache.org/jira/browse/SPARK-61391
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: connect-rust-4.3.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: connect-rust-4.3.0
>
>
> A follow-up of SPARK-61358, SPARK-61324 and SPARK-61386, found in a 
> post-merge review. PySpark's Params._set stores an explicit None and 
> serialize_ml_params sends it as a null literal, so 
> RandomForestClassifier(bootstrap=None) fits like bootstrap=False on the 
> server and seed=None, weightCol=None or impurity=None fail there; the native 
> classes of the Python client leave such a param unset, so they fit with the 
> default instead. An empty list param (VectorAssembler inputCols=[], 
> setThresholds([]), Pipeline stages=[]) is sent as an empty array, where 
> PySpark raises CANNOT_INFER_ARRAY_ELEMENT_TYPE when it serializes the params 
> at fit, transform or evaluate.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to