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

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

[~julianhyde] Hi. I think about these two methods, And finally decided to 
revert my changes. The new PR has ready to review. Thanks again. 

The PR:  [CALCITE-4748-PR|https://github.com/apache/calcite/pull/2503]

> 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