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

Fix map value extraction when map contains collated strings

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      Following queries return unexpected results:

      select collation(map('a', 'b' collate utf8_binary_lcase)['a']);
      select collation(element_at(map('a', 'b' collate utf8_binary_lcase), 'a'));

      Both return UTF8_BINARY instead of UTF8_BINARY_LCASE.

      Attachments

        Issue Links

          Activity

            People

              nikolamand-db Nikola Mandic
              nikolamand-db Nikola Mandic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: