[
https://issues.apache.org/jira/browse/CALCITE-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443196#comment-16443196
]
Julian Hyde commented on CALCITE-1775:
--------------------------------------
Sure. It seems that several Druid issues were fixed all at once. Probably good
to make sure that there are tests in DruidAdapterIT so that we don't regress.
> 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)