[
https://issues.apache.org/jira/browse/SPARK-50470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Max Gekk resolved SPARK-50470.
------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 49030
[https://github.com/apache/spark/pull/49030]
> Block usage of collations for maps' key
> ---------------------------------------
>
> Key: SPARK-50470
> URL: https://issues.apache.org/jira/browse/SPARK-50470
> Project: Spark
> Issue Type: Bug
> Components: Input/Output
> Affects Versions: 4.0.0, 3.5.4
> Reporter: Aleksei Shishkin
> Assignee: Aleksei Shishkin
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> Now it is possible to set collations on keys of map type. But it could lead
> to unexpected bugs related to uniqueness of keys, so after collation change
> existing data may become unreadable. For example, it happens when table is
> created with
> {code:java}
> map('A' -> 1, 'a' -> 2){code}
> and then collation switched to UTF8_LCASE.
> I propose to block collations on keys for now. Other systems rejects such
> changes as well.
> Probably int he future we could discuss about blocking changing collation but
> not blocking creation tables with collated keys.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]