[
https://issues.apache.org/jira/browse/CALCITE-4748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17402963#comment-17402963
]
duan xiong commented on CALCITE-4748:
-------------------------------------
[~julianhyde] Hi. I have read the CALCITE-1824'code carefully. And I think
this is a method to implement the GROUP_ID. This two-issue is not conflict. So
What do you think? (If we remove this PR, We need to find a new way to
calculate group_id.)
> 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)