Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BD8210C81 for ; Wed, 29 Apr 2015 01:30:06 +0000 (UTC) Received: (qmail 49637 invoked by uid 500); 29 Apr 2015 01:30:06 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 49603 invoked by uid 500); 29 Apr 2015 01:30:06 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 49591 invoked by uid 99); 29 Apr 2015 01:30:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 01:30:06 +0000 Date: Wed, 29 Apr 2015 01:30:05 +0000 (UTC) From: "Steven Phillips (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-2819) Complex Data : Accessing an element within a map using array notation should return a more meaningful error message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steven Phillips updated DRILL-2819: ----------------------------------- Component/s: (was: Storage - JSON) (was: Storage - Parquet) Execution - Data Types > 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 > 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)