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 37459171D5 for ; Thu, 6 Nov 2014 18:40:56 +0000 (UTC) Received: (qmail 74602 invoked by uid 500); 6 Nov 2014 18:40:55 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 74567 invoked by uid 500); 6 Nov 2014 18:40:55 -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 74551 invoked by uid 99); 6 Nov 2014 18:40:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 18:40:55 +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 18:40:54 +0000 Received: (qmail 73681 invoked by uid 99); 6 Nov 2014 18:40:34 -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 18:40:34 +0000 Date: Thu, 6 Nov 2014 18:40:34 +0000 (UTC) From: "Mehant Baid (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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:all-tabpanel ] Mehant Baid updated DRILL-1619: ------------------------------- Attachment: DRILL-1619.patch Updated patch with Aman's comment. > 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)