You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Hongze Zhang (JIRA)" <ji...@apache.org> on 2019/03/07 03:34:00 UTC

[jira] [Resolved] (CALCITE-2785) In EnumerableAggregate, wrong result produced If there are sorted aggregates and non-sorted aggregates at the same time

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

Hongze Zhang resolved CALCITE-2785.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.19.0

Fixed in [f992e6c8fbc3712c6bd70096fb6b05da448b2cab|https://gitbox.apache.org/repos/asf?p=calcite.git;a=commit;h=f992e6c8fbc3712c6bd70096fb6b05da448b2cab].

> In EnumerableAggregate, wrong result produced If there are sorted aggregates and non-sorted aggregates at the same time
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-2785
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2785
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.18.0
>            Reporter: Hongze Zhang
>            Assignee: Hongze Zhang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.19.0
>
>
> SQL:
> {code:sql}
> WITH tab(X) AS  (values 1, 2, 1)
> SELECT COLLECT(x), COLLECT(x) WITHIN GROUP (ORDER BY 1) FROM tab
> {code}
> Result:
> {code}
> EXPR$0 |EXPR$1  |
> -------|--------|
>        |[1,2,1] |
> {code}
> Correct result:
> {code}
> EXPR$0 |EXPR$1  |
> -------|--------|
> [1,2,1]|[1,2,1] |
> {code}
> The problem is introduced by [CALCITE-2224|https://issues.apache.org/jira/browse/CALCITE-2224].



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