未验证 提交 7769ff5b 编写于 作者: A alexey-milovidov 提交者: GitHub

Merge pull request #10617 from ClickHouse/lower-memory-usage-in-tests

Lower memory usage in tests
-- 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;
17300372046749301651
17300372046749301651
13852817355252071515
13852817355252071515
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;
INSERT INTO test.avro SELECT * FROM test.hits LIMIT 10000;
SELECT sum(cityHash64(*)) FROM test.hits WHERE intHash64(WatchID) % 100 = 0;
SELECT sum(cityHash64(*)) FROM (SELECT * FROM test.hits LIMIT 10000);
SELECT sum(cityHash64(*)) FROM test.avro;
DROP TABLE test.avro;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册