You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Linhong Liu (Jira)" <ji...@apache.org> on 2022/08/24 22:31:00 UTC

[jira] [Created] (SPARK-40213) Incorrect ASCII value for Latin-1 Supplement characters

Linhong Liu created SPARK-40213:
-----------------------------------

             Summary: Incorrect ASCII value for Latin-1 Supplement characters
                 Key: SPARK-40213
                 URL: https://issues.apache.org/jira/browse/SPARK-40213
             Project: Spark
          Issue Type: Task
          Components: SQL
    Affects Versions: 3.2.2
            Reporter: Linhong Liu


the `ascii()` built-in function in spark doesn't support Latin-1 Supplement characters which value between [128, 256). Instead, it produces a wrong value, -62 or -61 for all the chars. But the `chr()` built-in function supports value in [0, 256) and normally `ascii` should be the inverse of `chr()`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org