Search before asking
Version
version:1.1.3-rc02
What's Wrong?
Test SQL:
select
coalesce(col1,"all") as col1
,count(*) as cnt
from (
select null as col1
union all
select "a" as col1
) t
group by
grouping sets
(
(col1)
,()
)
;
What You Expected?
The expected result is:
col1 cnt
all 2
all 1
a 1
but the actual result is :
col1 cnt
NULL 2
all 1
a 1

so, I test the similar sql with hive, mysql(8.0+ and 5.7+) also get the expected result.



How to Reproduce?
just run the test sql directly
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct