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 2FE34178F7 for ; Fri, 27 Mar 2015 22:32:55 +0000 (UTC) Received: (qmail 78415 invoked by uid 500); 27 Mar 2015 22:32:55 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 78391 invoked by uid 500); 27 Mar 2015 22:32:55 -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 78381 invoked by uid 99); 27 Mar 2015 22:32:55 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 22:32:55 +0000 Date: Fri, 27 Mar 2015 22:32:55 +0000 (UTC) From: "Parth Chandra (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-2558) Four different errors are returned when running one COALESCE with multiple arguments of incompatible data types 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-2558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Parth Chandra updated DRILL-2558: --------------------------------- Fix Version/s: 1.1.0 > Four different errors are returned when running one COALESCE with multiple arguments of incompatible data types > --------------------------------------------------------------------------------------------------------------- > > Key: DRILL-2558 > URL: https://issues.apache.org/jira/browse/DRILL-2558 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill > Affects Versions: 0.8.0 > Reporter: Victoria Markman > Assignee: Daniel Barclay (Drill) > Fix For: 1.1.0 > > > Drill tries to do implicit cast during runtime, and we agreed that if particular cast is not implemented run time exception is fine for now. > However, it feels weird to get four of them at the same time. > I think we should throw exception on the first incompatibility and stop processing rest of the arguments. > {code} > 0: jdbc:drill:schema=dfs> select coalesce(c_varchar, c_integer, c_bigint, c_float, c_double, c_date, c_time, c_timestamp, c_boolean) from j2; > Query failed: Query stopped., Failure while trying to materialize incoming schema. Errors: > > Error in expression at index -1. Error: Missing function implementation: [castBIT(TIMESTAMP-OPTIONAL)]. Full expression: --UNKNOWN EXPRESSION--. > Error in expression at index -1. Error: Missing function implementation: [castBIT(TIME-OPTIONAL)]. Full expression: --UNKNOWN EXPRESSION--. > Error in expression at index -1. Error: Missing function implementation: [castBIT(DATE-OPTIONAL)]. Full expression: --UNKNOWN EXPRESSION--. > Error in expression at index -1. Error: Missing function implementation: [castFLOAT8(BIT-OPTIONAL)]. Full expression: --UNKNOWN EXPRESSION--.. [ e2effaf7-6fcc-4d7d-b408-2031aab2a344 on atsqa4-133.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)