[ 
https://issues.apache.org/jira/browse/DRILL-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rahul Challapalli closed DRILL-2277.
------------------------------------

Verified and added the below testcase

Functional/Passing/aggregate/aggregate19.q

> 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: 1.0.0
>
>         Attachments: DRILL-2277.patch
>
>
> 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)

Reply via email to