[
https://issues.apache.org/jira/browse/SPARK-61074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon updated SPARK-61074:
---------------------------------
Fix Version/s: connect-rust-4.3.0
> Write the collations of string fields in the metadata of the JSON of a
> StructType in the Python client as PySpark does
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-61074
> URL: https://issues.apache.org/jira/browse/SPARK-61074
> 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
>
>
> In PySpark Connect, {{StructType.json()}} and {{jsonValue()}} write the
> collation of a string field, also of one in an array or a map, in the
> {{__COLLATIONS}} of the metadata of the field, as Spark does, with the type
> of the field as "string":
> {{{"metadata":{"__COLLATIONS":{"s":"spark.UTF8_LCASE"}},"name":"s",...,"type":"string"}}}.
> The Rust-backed Python client writes the type of the field as "string collate
> UTF8_LCASE", without the metadata. Write 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]