Describe the bug
A link to the report https://s3.amazonaws.com/clickhouse-test-reports/51478/5fdb19672bc443222560df00e0b76add05a1ad10/fuzzer_astfuzzerasan/report.html
How to reproduce
The query in the report is SELECT number % NULL, NULL, sum(number) AS val FROM remote('127.0.0.{2,3}', numbers(toUInt64(-1))) GROUP BY number, number % 1023 WITH CUBE ORDER BY toUInt16(10) DESC NULLS LAST SETTINGS group_by_use_nulls = 1