Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B4E04200BD3 for ; Mon, 21 Nov 2016 17:57:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B37B7160B19; Mon, 21 Nov 2016 16:57:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0CB28160AF9 for ; Mon, 21 Nov 2016 17:57:00 +0100 (CET) Received: (qmail 24708 invoked by uid 500); 21 Nov 2016 16:57:00 -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 24344 invoked by uid 99); 21 Nov 2016 16:57:00 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2016 16:56:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D68492C0088 for ; Mon, 21 Nov 2016 16:56:59 +0000 (UTC) Date: Mon, 21 Nov 2016 16:56:59 +0000 (UTC) From: "Deneche A. Hakim (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4938) need better error message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 21 Nov 2016 16:57:01 -0000 [ https://issues.apache.org/jira/browse/DRILL-4938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15684084#comment-15684084 ] Deneche A. Hakim commented on DRILL-4938: ----------------------------------------- [~khfaraaz] displaying a user-friendly message isn't difficult from an implementation perspective, you just need to throw a UserException. > need better error message > ------------------------- > > Key: DRILL-4938 > URL: https://issues.apache.org/jira/browse/DRILL-4938 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Data Types > Affects Versions: 1.9.0 > Reporter: Khurram Faraaz > Assignee: Serhii Harnyk > Priority: Minor > > We need a better error message instead of DrillRuntimeException > Drill 1.9.0 git commit ID : 4edabe7a > {noformat} > 0: jdbc:drill:schema=dfs.tmp> select (res1 = 2016/09/22) res2 > . . . . . . . . . . . . . . > from > . . . . . . . . . . . . . . > ( > . . . . . . . . . . . . . . > select (case when (false) then null else cast('2016/09/22' as date) end) res1 > . . . . . . . . . . . . . . > from (values(1)) foo > . . . . . . . . . . . . . . > ) foobar; > Error: SYSTEM ERROR: DrillRuntimeException: Failure while materializing expression in constant expression evaluator [CASE(false, =(null, /(/(2016, 9), 22)), =(CAST('2016/09/22'):DATE NOT NULL, /(/(2016, 9), 22)))]. Errors: > Error in expression at index -1. Error: Missing function implementation: [castTIMESTAMP(INT-REQUIRED)]. Full expression: --UNKNOWN EXPRESSION--. > Error in expression at index -1. Error: Missing function implementation: [castTIMESTAMP(INT-REQUIRED)]. Full expression: --UNKNOWN EXPRESSION--. > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)