Describe the bug
https://s3.amazonaws.com/clickhouse-test-reports/43779/cdf6f7e6349c69d6650ff7e4f51382aeaef2d44a/fuzzer_astfuzzerubsan//report.html
How to reproduce
select number as a, number+1 as b from remote('127.0.0.{1,2}', numbers_mt(1e7)) group by grouping sets ((a), (b))
Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: SortingAggregatedTransform already got bucket with number 241. (LOGICAL_ERROR)