You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Rahul Challapalli (JIRA)" <ji...@apache.org> on 2015/04/18 02:15:59 UTC
[jira] [Created] (DRILL-2819) Complex Data : Accessing an element
within a map using array notation should return a more meaningful error
message
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)