You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2019/02/27 19:48:00 UTC
[jira] [Updated] (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 ]
Kevin Risden updated CALCITE-2785:
----------------------------------
Labels: pull-request-available (was: )
> 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
>
> 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)