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

Hyukjin Kwon updated SPARK-61396:
---------------------------------
    Description: A follow-up of SPARK-61288, found in a post-merge review. 
randomSplit of the Python client rejects a float or str seed with TypeError, 
where PySpark converts it with int(), as sample of both clients does. (The Rust 
API's sample_by seed is SPARK-61405.)  (was: A follow-up of SPARK-61329 and 
SPARK-61288, found in a post-merge review. StatFunctions::sample_by of the Rust 
API sends no seed when none is given, so the server draws one per process, 
while DataFrame::sample_opt and random_split draw one at call time as PySpark 
does. randomSplit of the Python client rejects a float or str seed, which 
PySpark converts with int(), as sample does.)
        Summary: Accept a float or str seed in randomSplit of the Python 
client, as PySpark does  (was: Draw the seed of sampleBy in the Rust API and 
accept a float seed in randomSplit of the Python client, as PySpark does)

> Accept a float or str seed in randomSplit of the Python client, as PySpark 
> does
> -------------------------------------------------------------------------------
>
>                 Key: SPARK-61396
>                 URL: https://issues.apache.org/jira/browse/SPARK-61396
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: connect-rust-4.3.0
>            Reporter: Hyukjin Kwon
>            Priority: Major
>             Fix For: connect-rust-4.3.0
>
>
> A follow-up of SPARK-61288, found in a post-merge review. randomSplit of the 
> Python client rejects a float or str seed with TypeError, where PySpark 
> converts it with int(), as sample of both clients does. (The Rust API's 
> sample_by seed is SPARK-61405.)



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