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 DF14A10530 for ; Mon, 17 Nov 2014 02:14:12 +0000 (UTC) Received: (qmail 55652 invoked by uid 500); 17 Nov 2014 02:14:12 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 55623 invoked by uid 500); 17 Nov 2014 02:14:12 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 55613 invoked by uid 99); 17 Nov 2014 02:14:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2014 02:14:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 17 Nov 2014 02:13:50 +0000 Received: (qmail 53704 invoked by uid 99); 17 Nov 2014 02:12:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2014 02:12:33 +0000 Date: Mon, 17 Nov 2014 02:12:33 +0000 (UTC) From: "Tomer Shiran (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-1726) Query fails when table is not named MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DRILL-1726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214198#comment-14214198 ] Tomer Shiran commented on DRILL-1726: ------------------------------------- Got it. Does it make sense to try if we see that there is no such table? > Query fails when table is not named > ----------------------------------- > > Key: DRILL-1726 > URL: https://issues.apache.org/jira/browse/DRILL-1726 > Project: Apache Drill > Issue Type: Bug > Reporter: Tomer Shiran > > The first query failed, and the second succeeded. The only difference was that the field was referred to with the table name b (ie, b.hours.Friday vs. hours.Friday). Both should work. > {code} > 0: jdbc:drill:zk=localhost:2181> SELECT name, hours.Friday FROM dfs.root.`Users/tshiran/Development/demo/data/yelp/business.json` b LIMIT 1; > Query failed: Failure while running sql. > Error: exception while executing query: Failure while executing query. (state=,code=0) > 0: jdbc:drill:zk=localhost:2181> SELECT name, b.hours.Friday FROM dfs.root.`Users/tshiran/Development/demo/data/yelp/business.json` b LIMIT 1; > +------------+------------+ > | name | EXPR$1 | > +------------+------------+ > | Eric Goldberg, MD | {"close":"17:00","open":"08:00"} | > +------------+------------+ > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)