Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-25230

Upper behavior incorrect for string contains "ß"

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.3.1
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:

      Description

      How to reproduce:

      spark-sql> SELECT upper('Haßler');
      HASSLER
      

      Mainstream databases returns HAßLER.

       

      This behavior may lead to data inconsistency:

      create temporary view SPARK_25230 as select * from values
        ("Hassler"),
        ("Haßler")
      as EMPLOYEE(name);
      select UPPER(name) from SPARK_25230 group by 1;
      -- result
      HASSLER

        Attachments

        1. Oracle.png
          86 kB
          Yuming Wang
        2. MySQL.png
          32 kB
          Yuming Wang
        3. Teradata.jpeg
          112 kB
          Yuming Wang

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yumwang Yuming Wang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment