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 1EC0C18AA4 for ; Tue, 26 May 2015 19:24:21 +0000 (UTC) Received: (qmail 94194 invoked by uid 500); 26 May 2015 19:24:21 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 94167 invoked by uid 500); 26 May 2015 19:24:21 -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 94158 invoked by uid 99); 26 May 2015 19:24:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2015 19:24:21 +0000 Date: Tue, 26 May 2015 19:24:20 +0000 (UTC) From: "Chris Westin (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-2925) Strange exception when avg is called with invalid argument type and count(*) 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-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Westin updated DRILL-2925: -------------------------------- Fix Version/s: (was: 1.1.0) 1.2.0 > Strange exception when avg is called with invalid argument type and count(*) > ---------------------------------------------------------------------------- > > Key: DRILL-2925 > URL: https://issues.apache.org/jira/browse/DRILL-2925 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Flow > Affects Versions: 0.9.0 > Reporter: Victoria Markman > Assignee: Chris Westin > Priority: Minor > Fix For: 1.2.0 > > > This weird exception is thrown only with this particular combination of function calls: count(*), and both distinct and non distinct call to AVG. > If you run all these separately, you will get "usual" runtime exception about missing function implementation. > {code} > 0: jdbc:drill:schema=dfs> select > . . . . . . . . . . . . > count(*), > . . . . . . . . . . . . > avg(distinct c_varchar), > . . . . . . . . . . . . > avg(c_varchar) > . . . . . . . . . . . . > from > . . . . . . . . . . . . > alltypes > . . . . . . . . . . . . > ; > Query failed: SYSTEM ERROR: Invalid value for boolean: il304488381660192170587 > Fragment 0:0 > [f92bb536-8403-416e-9239-4aaa5c2e4d23 on atsqa4-133.qa.lab:31010] > Error: exception while executing query: Failure while executing query. (state=,code=0) > {code} > AVG by itself: > {code} > 0: jdbc:drill:schema=dfs> select avg(c_varchar) from alltypes; > Query failed: SYSTEM ERROR: Failure while trying to materialize incoming schema. Errors: > Error in expression at index -1. Error: Missing function implementation: [castINT(BIT-OPTIONAL)]. Full expression: --UNKNOWN EXPRESSION--.. > Fragment 0:0 > 0: jdbc:drill:schema=dfs> select avg(distinct c_varchar) from alltypes; > Query failed: SYSTEM ERROR: Failure while trying to materialize incoming schema. Errors: > Error in expression at index -1. Error: Missing function implementation: [castINT(BIT-OPTIONAL)]. Full expression: --UNKNOWN EXPRESSION--.. > Fragment 0:0 > [2d3adc96-7043-4854-bd31-28181df647a6 on atsqa4-133.qa.lab:31010] > Error: exception while executing query: Failure while executing query. (state=,code=0) > {code} > AVG with COUNT(*) > {code} > 0: jdbc:drill:schema=dfs> select count(*), avg(c_varchar) from alltypes; > Query failed: SYSTEM ERROR: Failure while trying to materialize incoming schema. Errors: > Error in expression at index -1. Error: Missing function implementation: [castINT(BIT-OPTIONAL)]. Full expression: --UNKNOWN EXPRESSION--.. > Fragment 0:0 > [e7e165e5-adda-4a68-9f5a-a3c3d0f0faed on atsqa4-133.qa.lab:31010] > Error: exception while executing query: Failure while executing query. (state=,code=0) > 0: jdbc:drill:schema=dfs> select count(*), avg(distinct c_varchar) from alltypes; > Query failed: SYSTEM ERROR: Failure while trying to materialize incoming schema. Errors: > > Error in expression at index -1. Error: Missing function implementation: [castINT(BIT-OPTIONAL)]. Full expression: --UNKNOWN EXPRESSION--.. > Fragment 0:0 > [ca16cd88-c9dd-46a7-983b-af722c88777d 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)