[
https://issues.apache.org/jira/browse/SPARK-49207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan reassigned SPARK-49207:
-----------------------------------
Assignee: Uroš Bojanić
> Fix SplitPart one-to-many case mapping (UTF8_LCASE)
> ---------------------------------------------------
>
> Key: SPARK-49207
> URL: https://issues.apache.org/jira/browse/SPARK-49207
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Uroš Bojanić
> Assignee: Uroš Bojanić
> Priority: Major
> Labels: pull-request-available
>
> Fix the following string expressions to handle one-to-many case mapping
> properly:
> * SplitPart
> * StringSplitSQL
>
> Examples of incorrect results (under {{UTF8_LCASE}} collation):
> {code:java}
> SplitPart("Ai\u0307B", "İ", 2) // returns: "\u0307B" (incorrect), instead of:
> "B" (correct)
> SplitPart("AİB", "i\u0307", 1) // returns: "AİB", instead of: "A", "B"
> (correct){code}
>
> {code:java}
> StringSplitSQL("Ai\u0307B", "İ") // returns: ["A", "\u0307B"] (incorrect),
> instead of: ["A", "B"] (correct)
> StringSplitSQL("AİB", "i\u0307") // returns: ["AİB"] (incorrect), instead of:
> ["A", "B"] (correct){code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]