You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/03/17 13:52:00 UTC

[jira] [Updated] (CALCITE-5050) Unexpected rowCount of aggregate without group keys

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

ASF GitHub Bot updated CALCITE-5050:
------------------------------------
    Labels: pull-request-available  (was: )

> Unexpected rowCount of aggregate without group keys
> ---------------------------------------------------
>
>                 Key: CALCITE-5050
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5050
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.29.0, 1.30.0
>            Reporter: Jing Zhang
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently, RowCount of aggregate without group keys are unexpected.
> The problem could be appear in the following UT:
> {code:java}
>   @Test void testRowCountAggregateEmptyKey1() {
>     fixture()
>         .withRelFn(b ->
>             b.scan("EMP")
>                 .aggregate(
>                     b.groupKey(),
>                     b.count(false, "C"))
>                 .build())
>         .assertThatRowCount(is(1D), is(1D), is(1D));
>   }
> {code}
> Now, the above UT would be failed because row count return 1.4D instead of 1D.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)