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 A804517D53 for ; Fri, 6 Feb 2015 22:39:35 +0000 (UTC) Received: (qmail 89913 invoked by uid 500); 6 Feb 2015 22:39:35 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 89881 invoked by uid 500); 6 Feb 2015 22:39: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 89871 invoked by uid 99); 6 Feb 2015 22:39:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 22:39:35 +0000 Date: Fri, 6 Feb 2015 22:39:35 +0000 (UTC) From: "Will Ochandarena (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-2179) better handle column called 'Timestamp' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Will Ochandarena created DRILL-2179: --------------------------------------- Summary: better handle column called 'Timestamp' Key: DRILL-2179 URL: https://issues.apache.org/jira/browse/DRILL-2179 Project: Apache Drill Issue Type: Bug Components: SQL Parser Affects Versions: 0.7.0 Reporter: Will Ochandarena Assignee: Aman Sinha Priority: Minor When querying a JSON file with a key called 'Timestamp' (select timestamp from ), Drill throws a non-intuitive error message (below). It works when backticking. Ideally the parser would look for keys called 'Timestamp' before erroring out. If that can't be done, a better error should be printed. jdbc:drill:zk=local> select Timestamp, Operation from dfs.`/...json`; Query failed: Query failed: Failure parsing SQL. Encountered "Timestamp ," at line 1, column 8. Was expecting one of: "UNION" ... "INTERSECT" ... "EXCEPT" ... "ORDER" ... -- This message was sent by Atlassian JIRA (v6.3.4#6332)