You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "slim bouguerra (JIRA)" <ji...@apache.org> on 2018/04/18 18:47:00 UTC

[jira] [Commented] (CALCITE-1775) Druid adapter: "GROUP BY ()" on empty relation should return 1 row

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

slim bouguerra commented on CALCITE-1775:
-----------------------------------------

I think we can close this since it was fixed already.

> Druid adapter: "GROUP BY ()" on empty relation should return 1 row
> ------------------------------------------------------------------
>
>                 Key: CALCITE-1775
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1775
>             Project: Calcite
>          Issue Type: Bug
>          Components: druid
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.16.0
>
>
> A "GROUP BY ()" query on an empty relation should return 1 row, but currently returns 0 rows. 
> Test case in {{DruidAdapterIT}}:
> {code}
>   @Test public void testSelectCountEmpty() {
>     sql("select count(*) as c from \"foodmart\" where \"product_id\" < 0")
>         .returnsUnordered("C=0");
>   }
> {code}
> The query should return one row, but returns 0 rows.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)