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 42DBF200B9F for ; Tue, 6 Sep 2016 07:47:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 41800160ABC; Tue, 6 Sep 2016 05:47:22 +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 B7D85160AD0 for ; Tue, 6 Sep 2016 07:47:21 +0200 (CEST) Received: (qmail 69696 invoked by uid 500); 6 Sep 2016 05:47:20 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 69622 invoked by uid 99); 6 Sep 2016 05:47:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2016 05:47:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B34912C1B80 for ; Tue, 6 Sep 2016 05:47:20 +0000 (UTC) Date: Tue, 6 Sep 2016 05:47:20 +0000 (UTC) From: "Ankit Singhal (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3054) Counting zero null rows returns an empty result set MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 06 Sep 2016 05:47:22 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15466502#comment-15466502 ] Ankit Singhal commented on PHOENIX-3054: ---------------------------------------- Thanks [~giacomotaylor] for the review. bq. Were the ProductMetricsIT tests failing because there were no iterators in the merge sort? Yes, it is failing because of no iterators in the merge sort. bq. Is this the same, but slightly more efficient? Yes, It is more efficient, did the change during commit. Committed to 4.8, 4.x and master branches. > Counting zero null rows returns an empty result set > --------------------------------------------------- > > Key: PHOENIX-3054 > URL: https://issues.apache.org/jira/browse/PHOENIX-3054 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.7.0 > Reporter: Kevin Liew > Assignee: Ankit Singhal > Priority: Minor > Labels: count, count(*), null, sql > Fix For: 4.9.0, 4.8.1 > > Attachments: PHOENIX-3054.patch, PHOENIX-3054_v1.patch > > > Execute the following query on a table with zero null cells. > {code} > select count(*) from table where column1 = null > {code} > The result set should consist of one cell with the value `0` but the result set is empty. -- This message was sent by Atlassian JIRA (v6.3.4#6332)