[
https://issues.apache.org/jira/browse/DRILL-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Westin updated DRILL-2819:
--------------------------------
Fix Version/s: (was: 1.2.0)
1.3.0
> 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: Execution - Data Types
> Reporter: Rahul Challapalli
> Assignee: Steven Phillips
> Priority: Minor
> Labels: error_message_must_fix
> Fix For: 1.3.0
>
>
> 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)