Lower memory usage in tests #10277

This commit is contained in:
Alexey Milovidov 2020-05-01 21:26:52 +03:00
parent ed46b98dc4
commit c15fe728fd
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,3 @@
-- serialization of big arrays shouldn't use too much memory
set max_memory_usage = 3000000000;
select ignore(x) from (select groupArray(number) x from numbers(33554433)) group by x format Null;
set max_memory_usage = 300000000;
select ignore(x) from (select groupArray(number) x from numbers(3355443)) group by x format Null;

View File

@ -1,5 +1,7 @@
DROP TABLE IF EXISTS test.avro;
SET max_threads = 1, max_block_size = 8192, min_insert_block_size_rows = 8192, min_insert_block_size_bytes = 1048576; -- lower memory usage
CREATE TABLE test.avro AS test.hits ENGINE = File(Avro);
INSERT INTO test.avro SELECT * FROM test.hits WHERE intHash64(WatchID) % 100 = 0;