drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Challapalli (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-2819) Complex Data : Accessing an element within a map using array notation should return a more meaningful error message
Date Sat, 18 Apr 2015 00:15:59 GMT
Rahul Challapalli created DRILL-2819:
----------------------------------------

             Summary: Complex Data : Accessing an element within a map using array notation
should return a more meaningful error message
                 Key: DRILL-2819
                 URL: https://issues.apache.org/jira/browse/DRILL-2819
             Project: Apache Drill
          Issue Type: Bug
          Components: Storage - JSON, Storage - Parquet
            Reporter: Rahul Challapalli
            Assignee: Steven Phillips


git.commit.id.abbrev=5cd36c5

The below query tries to access a filed within a map using array notation. This currently
is not supported. We should somehow hint the user about the right syntax.
{code}
select map[rm] from `data.json`;
Query failed: PARSE ERROR: From line 1, column 8 to line 1, column 14: Map requires an even
number of arguments
{code}

Using quotes for the fieldname
{code}
select map['rm'] from `data.json`;
Query failed: PARSE ERROR: From line 1, column 8 to line 1, column 16: Map requires an even
number of arguments
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message