[ 
https://issues.apache.org/jira/browse/CALCITE-4748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17402904#comment-17402904
 ] 

duan xiong commented on CALCITE-4748:
-------------------------------------

[~julianhyde] Yes. Maybe break something and I think this is the right behavior 
to make aggregate support just order(As you have seen in PR, Have some wrong 
unit tests in calcite before). So I plan to remove CALCITE-1824's change in 
this PR.

> If there are duplicate GROUPING SETS, Calcite should return duplicate rows
> --------------------------------------------------------------------------
>
>                 Key: CALCITE-4748
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4748
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.27.0
>            Reporter: duan xiong
>            Assignee: duan xiong
>            Priority: Critical
>
> When run SQL1:
> {code:java}
> select prod_id from foodmart.sales_fact_1997 as s group by grouping 
> sets(prod_id,prod_id){code}
> and SQL2:
> {code:java}
> select prod_id from foodmart.sales_fact_1997 as s group by grouping 
> sets(prod_id){code}
> get the SAME result. This is wrong. SQL1 return result's number = SQL2 return 
> result*2 number



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to