drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Geercken (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-3490) initcap function creates invalid data on all uppercase data
Date Mon, 13 Jul 2015 07:00:11 GMT
Uwe Geercken created DRILL-3490:
-----------------------------------

             Summary: initcap function creates invalid data on all uppercase data
                 Key: DRILL-3490
                 URL: https://issues.apache.org/jira/browse/DRILL-3490
             Project: Apache Drill
          Issue Type: Improvement
          Components: Functions - Drill
    Affects Versions: 1.1.0
            Reporter: Uwe Geercken
            Assignee: Daniel Barclay (Drill)
            Priority: Minor


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>))




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message