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 93CDC17745 for ; Mon, 9 Feb 2015 04:26:15 +0000 (UTC) Received: (qmail 38690 invoked by uid 500); 9 Feb 2015 02:39:35 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 38512 invoked by uid 500); 9 Feb 2015 02:39:35 -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 38256 invoked by uid 99); 9 Feb 2015 02:39:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2015 02:39:34 +0000 Date: Mon, 9 Feb 2015 02:39:34 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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 Rahul Challapalli created DRILL-2182: ---------------------------------------- Summary: 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/MapR) 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)