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 E89F917D07 for ; Tue, 7 Apr 2015 23:45:13 +0000 (UTC) Received: (qmail 98781 invoked by uid 500); 7 Apr 2015 23:45:13 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 98753 invoked by uid 500); 7 Apr 2015 23:45:13 -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 98741 invoked by uid 99); 7 Apr 2015 23:45:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2015 23:45:13 +0000 Date: Tue, 7 Apr 2015 23:45:13 +0000 (UTC) From: "Parth Chandra (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-2182) Error message not clear when we try to apply flatten on a non-repeated column 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-2182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Parth Chandra updated DRILL-2182: --------------------------------- Fix Version/s: (was: 0.9.0) 1.1.0 > Error message not clear when we try to apply flatten on a non-repeated column > ----------------------------------------------------------------------------- > > Key: DRILL-2182 > URL: https://issues.apache.org/jira/browse/DRILL-2182 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill > Reporter: Rahul Challapalli > Assignee: Daniel Barclay (Drill) > Priority: Minor > Fix For: 1.1.0 > > > git.commit.id.abbrev=c54bd6a > When we apply flatten on an integer column, the error message is obscure > {code} > 0: jdbc:drill:schema=dfs_eea> select flatten(uid) from `data1.json`; > Query failed: RemoteRpcException: Failure while running fragment., org.apache.drill.exec.vector.NullableBigIntVector cannot be cast to org.apache.drill.exec.vector.RepeatedVector [ 1a8a5802-d67b-4a86-82ff-098d997f696a on qa-node191.qa.lab:31010 ] > [ 1a8a5802-d67b-4a86-82ff-098d997f696a on qa-node191.qa.lab:31010 ] > Error: exception while executing query: Failure while executing query. (state=,code=0) > {code} > Below is the case for a map. This is an improvement from the above case. However I am not sure whether user's understand what a repeated type is > {code} > 0: jdbc:drill:schema=dfs_eea> select flatten(map) from `data1.json`; > Query failed: RemoteRpcException: Failure while running fragment., Trying to flatten a non-repeated filed. [ 9c80ff81-59eb-4a14-9359-a639f03763ed on qa-node191.qa.lab:31010 ] > [ 9c80ff81-59eb-4a14-9359-a639f03763ed on qa-node191.qa.lab:31010 ] > Error: exception while executing query: Failure while executing query. (state=,code=0) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)