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 8FE5F17A72 for ; Thu, 6 Nov 2014 17:17:59 +0000 (UTC) Received: (qmail 49675 invoked by uid 500); 6 Nov 2014 17:17:59 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 49647 invoked by uid 500); 6 Nov 2014 17:17:59 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 49638 invoked by uid 99); 6 Nov 2014 17:17:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 17:17:59 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 06 Nov 2014 17:17:37 +0000 Received: (qmail 49309 invoked by uid 99); 6 Nov 2014 17:17:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 17:17:35 +0000 Date: Thu, 6 Nov 2014 17:17:35 +0000 (UTC) From: "Aman Sinha (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-1619) count(boolean) always returns 'true' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DRILL-1619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14200484#comment-14200484 ] Aman Sinha commented on DRILL-1619: ----------------------------------- The error message is : + throw new RuntimeException("Boolean type does not support aggregate functions"); But count(bool) is supported, so should this be something like : "Only COUNT aggregate function supported for Boolean type" > count(boolean) always returns 'true' > ------------------------------------ > > Key: DRILL-1619 > URL: https://issues.apache.org/jira/browse/DRILL-1619 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill > Affects Versions: 0.7.0 > Reporter: Chun Chang > Assignee: Mehant Baid > Attachments: DRILL-1619.patch > > > #Wed Oct 29 09:57:56 PDT 2014 > git.commit.id.abbrev=2871c3b > count a boolean column always return the value 'true': > 0: jdbc:drill:schema=dfs.drillTestDirMondrian> select count(t.bool) from `complex.json` t where t.bool = true; > +------------+ > | EXPR$0 | > +------------+ > | true | > +------------+ > 1 row selected (0.145 seconds) > 0: jdbc:drill:schema=dfs.drillTestDirMondrian> select count(t.bool) from `complex.json` t where t.bool = false; > +------------+ > | EXPR$0 | > +------------+ > | true | > +------------+ > 1 row selected (0.169 seconds) -- This message was sent by Atlassian JIRA (v6.3.4#6332)