Hi, This will fail too.
Note that, when we have only one element in GROUPING SETS, we add that in group by list and set parse->groupingSets to NULL. And hence it will have same issue. However tests added in my patch failing too. Thanks -- Jeevan B Chalke Principal Software Engineer, Product Development EnterpriseDB Corporation The Enterprise PostgreSQL Company