drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-1726) Query fails when table is not named
Date Mon, 17 Nov 2014 01:35:40 GMT

     [ https://issues.apache.org/jira/browse/DRILL-1726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jacques Nadeau resolved DRILL-1726.
-----------------------------------
    Resolution: Won't Fix

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

Mime
View raw message