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

Hyukjin Kwon resolved SPARK-61073.
----------------------------------
    Resolution: Fixed

Issue resolved by pull request 271
[https://github.com/apache/spark-connect-rust/pull/271]

> Raise KEY_NOT_EXISTS for a missing field of a StructType, and parse the JSON 
> type of StructType.add, in the Python client as PySpark does
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-61073
>                 URL: https://issues.apache.org/jira/browse/SPARK-61073
>             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
>
>
> In PySpark Connect, {{StructType[name]}} raises the {{PySparkKeyError}} 
> {{KEY_NOT_EXISTS}} of the name for a field that does not exist, and 
> {{StructType.add(field, data_type)}} parses a str {{data_type}} as the JSON 
> value of a data type, such as "integer", raising {{CANNOT_PARSE_DATATYPE}} 
> for one that is not, such as "int".
> The Rust-backed Python client raises a plain {{KeyError}} for a field that 
> does not exist, and parses a str of {{add}} as DDL. 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