Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86E21101F9 for ; Sun, 4 Jan 2015 23:58:34 +0000 (UTC) Received: (qmail 22367 invoked by uid 500); 4 Jan 2015 23:58:35 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 22336 invoked by uid 500); 4 Jan 2015 23:58:35 -0000 Mailing-List: contact issues-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 issues@drill.apache.org Received: (qmail 22326 invoked by uid 99); 4 Jan 2015 23:58:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2015 23:58:35 +0000 Date: Sun, 4 Jan 2015 23:58:35 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1867) Case sensitivity of query identifiers is inconstistent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-1867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-1867: ---------------------------------- Fix Version/s: 0.8.0 > Case sensitivity of query identifiers is inconstistent > ------------------------------------------------------ > > Key: DRILL-1867 > URL: https://issues.apache.org/jira/browse/DRILL-1867 > Project: Apache Drill > Issue Type: Bug > Components: SQL Parser > Affects Versions: 0.7.0 > Reporter: Victoria Markman > Assignee: Jinfeng Ni > Fix For: 0.8.0 > > Attachments: 0001-DRILL-1867-Fix-case-insensitive-matching-for-subquer.patch > > > git.commit.id.abbrev=c65928f > In this query it looks like identifies are case insensitive. > 0: jdbc:drill:schema=dfs> select Eventdate from `test.json` where eventdate is not null; > +------------+ > | Eventdate | > +------------+ > | 2014-01-01 | > | 2014-01-01 | > | 2014-02-01 | > +------------+ > 3 rows selected (0.107 seconds) > However, in subquery, they suddenly change the behavior and become case sensitive. > 0: jdbc:drill:schema=dfs> select EVENTDATE from ( select Eventdate from `test.json` where eventdate is not null ); > Query failed: Query failed: Failure validating SQL. org.eigenbase.util.EigenbaseContextException: From line 1, column 8 to line 1, column 16: Column 'EVENTDATE' not found in any table > Error: exception while executing query: Failure while executing query. (state=,code=0) > This happens not only when querying unstructured data, but Drill tables as well: > 0: jdbc:drill:schema=dfs> select Customerid from test where customerid = 100; > +------------+ > | Customerid | > +------------+ > | 100 | > +------------+ -- This message was sent by Atlassian JIRA (v6.3.4#6332)