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

initcap UDF doesn't match Hive/Oracle behavior in lowercasing rest of string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • SQL

    Description

      Current, SparkSQL `initCap` is using `toTitleCase` function. However, `UTF8String.toTitleCase` implementation changes only the first letter and just copy the other letters: e.g. sParK --> SParK. (This is the correct expected implementation of `toTitleCase`.)

      So, The main goal of this issue provides the correct `initCap`.

      Attachments

        Activity

          People

            dongjoon Dongjoon Hyun
            dongjoon Dongjoon Hyun
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: