huangyuansheng opened a new issue #8698: URL: https://github.com/apache/incubator-doris/issues/8698
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues. ### Version Master of 2022-02-15 ### What's Wrong? create table test_a (a int ) unique key(a) distributed by hash(a) buckets 1; insert into test_a select 1; insert into test_a select null; select * from test_a; select a, count(1) from test_a group by GROUPING sets((a), ()) | a | count(1) | |--|--| |1| 1 | || 1 | || 2 | select b, count(1) from (select ifnull(a, 'XX') as b from test_a) x group by GROUPING sets((b), ()) | a | count(1) | |--|--| |1| 1 | | xx | 1 | | xx | 2 | ### What You Expected? | a | count(1) | |--|--| |1| 1 | | xx | 1 | | | 2 | ### How to Reproduce? _No response_ ### Anything Else? maybe like: https://github.com/apache/incubator-doris/issues/7012 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org