Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3490

initcap function creates invalid data on all uppercase data

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.0
    • Future
    • Functions - Drill
    • None

    Description

      the INITCAP function capitalizes the first character of each word in a given string.

      when the given string is already all uppercase, INITCAP produces an invalid result.

      Example:

      from the value = HELSINKI-VANTAA AIRPORT
      the INITCAP function returns: H%,3).+)-V!.4!! A)20/24

      a workaround that does work is to first use the LOWER function:

      INITCAP(LOWER(<value>))

      Attachments

        Activity

          People

            Unassigned Unassigned
            uwegeercken Uwe Geercken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: