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

Upper behavior incorrect for string contains "ß"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.3.1
    • None
    • SQL

    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. Teradata.jpeg
          112 kB
          Yuming Wang
        2. Oracle.png
          86 kB
          Yuming Wang
        3. MySQL.png
          32 kB
          Yuming Wang

        Activity

          People

            Unassigned Unassigned
            yumwang Yuming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: