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] [Updated] (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:all-tabpanel ]
slim bouguerra updated CALCITE-1775:
------------------------------------
Fix Version/s: 1.16.0
> 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)