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

ASF GitHub Bot updated SPARK-61054:
-----------------------------------
    Labels: pull-request-available  (was: )

> Take the arguments of spark.range and of the table-valued functions of 
> spark.tvf in the Python client as PySpark does
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-61054
>                 URL: https://issues.apache.org/jira/browse/SPARK-61054
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: connect-rust-4.3.0
>            Reporter: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: connect-rust-4.3.0
>
>
> In PySpark Connect, {{spark.range(start, end, step, numPartitions)}} and 
> {{spark.tvf.range}} take the {{int()}} of their arguments, such as 
> {{spark.range("3")}} and {{spark.range(2.7)}}. The functions of 
> {{spark.tvf}}, such as {{explode}}, {{inline}}, {{json_tuple}} and {{stack}}, 
> take Columns or column names, as {{F._to_col}} does, else 
> {{NOT_EXPECTED_TYPE}} of {{col}}.
> The Rust-backed Python client raises a {{TypeError}} for arguments of 
> {{range}} that are not ints, and takes the arguments of {{spark.tvf}} as 
> literals: {{spark.tvf.json_tuple(json, "a")}} takes the string "a" rather 
> than the column {{a}}, and {{spark.tvf.explode([1, 2])}} explodes an array of 
> the list rather than raising. Take them as PySpark does.



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