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

Vladimir Sitnikov commented on CALCITE-2490:
--------------------------------------------

Well, trying (),() was natural for me when I discovered that (a),() fails in 
current Calcite core.

My intention is to commit a validation check if it is not hard to implement.

> Wrong results when grouping set is repeated
> -------------------------------------------
>
>                 Key: CALCITE-2490
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2490
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.17.0
>            Reporter: Vladimir Sitnikov
>            Assignee: Julian Hyde
>            Priority: Major
>
> The following query produces 2 rows in PostgreSQL and just one in Calcite
> {code:sql}select count(*)
>   from (select * from (values(1)) as t(a))
>  group by grouping sets ((a), (a)){code}



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

Reply via email to