Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A1EF188CE for ; Mon, 13 Jul 2015 07:00:11 +0000 (UTC) Received: (qmail 51356 invoked by uid 500); 13 Jul 2015 07:00:11 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 51303 invoked by uid 500); 13 Jul 2015 07:00:11 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 51286 invoked by uid 99); 13 Jul 2015 07:00:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2015 07:00:11 +0000 Date: Mon, 13 Jul 2015 07:00:11 +0000 (UTC) From: "Uwe Geercken (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-3490) initcap function creates invalid data on all uppercase data MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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()) -- This message was sent by Atlassian JIRA (v6.3.4#6332)