[ https://issues.apache.org/jira/browse/DRILL-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Phillips updated DRILL-2819: ----------------------------------- Fix Version/s: 1.0.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: Storage - JSON, Storage - Parquet > Reporter: Rahul Challapalli > Assignee: Steven Phillips > Labels: error_message_must_fix > Fix For: 1.0.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)