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 D230217AE6 for ; Mon, 2 Feb 2015 16:24:08 +0000 (UTC) Received: (qmail 83718 invoked by uid 500); 2 Feb 2015 16:23:35 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 83543 invoked by uid 500); 2 Feb 2015 16:23: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 83376 invoked by uid 99); 2 Feb 2015 16:23:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2015 16:23:35 +0000 Date: Mon, 2 Feb 2015 16:23:35 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-2118) Improve error message to inform the user if mappify/kvgen fails due to ClassCastException 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-2118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301413#comment-14301413 ] Jacques Nadeau commented on DRILL-2118: --------------------------------------- At a minimum, this should be done in MapUtility rather than outside. > Improve error message to inform the user if mappify/kvgen fails due to ClassCastException > ----------------------------------------------------------------------------------------- > > Key: DRILL-2118 > URL: https://issues.apache.org/jira/browse/DRILL-2118 > Project: Apache Drill > Issue Type: Improvement > Reporter: Hanifi Gunes > Assignee: Mehant Baid > Priority: Minor > Attachments: DRILL-2118.1.patch.txt > > > Currently mappify throws a non-user friendly error message when the input map consists of heterogenous value types. The proposal is to improve the error message to inform user about the usage and root cause of the failure in a non-technical dialect. > Running > {code} > select kvgen(t.m) from ex.json t > {code} > over > {code:title=ex.json} > {m:{a:1}} > {m:{b:-1.0}} > {code} > throws > {code} > Query failed: Query failed: Failure while running fragment., org.apache.drill.exec.vector.complex.impl.NullableFloat8WriterImpl cannot be cast to org.apache.drill.exec.vector.complex.impl.NullableIntWriterImpl > {code} > We should inform the user with an intelligible reason why the query failed instead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)