drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victoria Markman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-2277) COUNT(*) should return 0 instead of an empty result set when there are no records
Date Thu, 12 Mar 2015 23:17:38 GMT

    [ https://issues.apache.org/jira/browse/DRILL-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14359600#comment-14359600
] 

Victoria Markman commented on DRILL-2277:
-----------------------------------------

Note to QA: count(x), count(distinct x) have the same problem. Need to make sure we test it
when fix is checked in.

> COUNT(*) should return 0 instead of an empty result set when there are no records
> ---------------------------------------------------------------------------------
>
>                 Key: DRILL-2277
>                 URL: https://issues.apache.org/jira/browse/DRILL-2277
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Rahul Challapalli
>            Assignee: Mehant Baid
>            Priority: Critical
>             Fix For: 0.9.0
>
>
> git.commit.id.abbrev=6676f2d
> Data Set :
> {code}
> {
>  "id":1
> }
> {code}
> Query :
> {code}
> select count(*) from `temp.json` where uid < 1;
> +------------+
> |   EXPR$0   |
> +------------+
> +------------+
> {code}
> Postgres returns 0 in this case.
> Marking it as critical since we return an incorrect result



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message