
create view v (s LowCardinality(String), n UInt8) as select 'test' as s, toUInt8(number) as n from numbers(10000000);

-- this is what allows mem usage to go really high
set max_block_size=4294967296;

set max_memory_usage = '420Mi';

select s, sum(n) from v group by s format Null;

DROP TABLE v;
