[
https://issues.apache.org/jira/browse/SPARK-49204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uroลก Bojaniฤ updated SPARK-49204:
---------------------------------
Description:
Fix the following string expressions to handle one-to-many case mapping
properly:
* StringReplace
* StringInstr
* StringLocate
* SubstringIndex
* StringTrim
* StringTrimLeft
* StringTrimRight
ย
Examples of incorrect results (underย {{ICU}} collations):
{code:java}
StringReplace("๐a", "a", "b") // returns: "๐ab" (incorrect), instead of: "๐b"
(correct){code}
ย
{code:java}
StringInstr("๐a", "a") // returns: 3 (incorrect), instead of: 2 (correct){code}
ย
{code:java}
StringLocate("a", "๐a") // returns: 3 (incorrect), instead of: 2 (correct){code}
ย
{code:java}
SubstringIndex("๐a", "a") // returns: "๐a" (incorrect), instead of: "๐"
(correct){code}
ย
{code:java}
StringTrim("๐", "๐") // returns: "๐" (incorrect), instead of: "" (correct){code}
ย
{code:java}
StringTrimLeft("๐", "๐") // returns: "๐" (incorrect), instead of: ""
(correct){code}
ย
{code:java}
StringTrimRight("๐", "๐") // returns: "๐" (incorrect), instead of: ""
(correct){code}
was:
Fix the following string expressions to handle one-to-many case mapping
properly:
* StringReplace
* StringInstr
* StringLocate
* SubstringIndex
* StringTrim
* StringTrimLeft
* StringTrimRight
ย
Examples of incorrect results (underย {{ICU}} collations):
{code:java}
StringReplace("๐a", "a", "b") // returns: "๐ab" (incorrect), instead of: "๐b"
(correct){code}
ย
ย
ย
> Handle surrogate pairs properly
> -------------------------------
>
> Key: SPARK-49204
> URL: https://issues.apache.org/jira/browse/SPARK-49204
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Uroลก Bojaniฤ
> Priority: Major
> Labels: pull-request-available
>
> Fix the following string expressions to handle one-to-many case mapping
> properly:
> * StringReplace
> * StringInstr
> * StringLocate
> * SubstringIndex
> * StringTrim
> * StringTrimLeft
> * StringTrimRight
> ย
> Examples of incorrect results (underย {{ICU}} collations):
> {code:java}
> StringReplace("๐a", "a", "b") // returns: "๐ab" (incorrect), instead of: "๐b"
> (correct){code}
> ย
> {code:java}
> StringInstr("๐a", "a") // returns: 3 (incorrect), instead of: 2
> (correct){code}
> ย
> {code:java}
> StringLocate("a", "๐a") // returns: 3 (incorrect), instead of: 2
> (correct){code}
> ย
> {code:java}
> SubstringIndex("๐a", "a") // returns: "๐a" (incorrect), instead of: "๐"
> (correct){code}
> ย
> {code:java}
> StringTrim("๐", "๐") // returns: "๐" (incorrect), instead of: ""
> (correct){code}
> ย
> {code:java}
> StringTrimLeft("๐", "๐") // returns: "๐" (incorrect), instead of: ""
> (correct){code}
> ย
> {code:java}
> StringTrimRight("๐", "๐") // returns: "๐" (incorrect), instead of: ""
> (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]