Add test.

This commit is contained in:
Nikolai Kochetov 2020-12-18 11:34:20 +03:00
parent eef58c85f0
commit 8012951e77
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,3 @@
24972288 1522399120
24972288 1522399120
24972288 1522399120

View File

@ -0,0 +1,15 @@
drop table if exists t;
create table t (x UInt64, s String) engine = MergeTree order by x;
INSERT INTO t SELECT
number,
if(number < (8129 * 1024), arrayStringConcat(arrayMap(x -> toString(x), range(number % 128)), ' '), '')
FROM numbers_mt((8129 * 1024) * 3) settings max_insert_threads=8;
-- optimize table t final;
select count(), sum(length(s)) from t settings max_threads = 3, read_backoff_min_latency_ms = 1, read_backoff_max_throughput = 1000000000, read_backoff_min_interval_between_events_ms = 1, read_backoff_min_events = 1, read_backoff_min_concurrency = 1;
select count(), sum(length(s)) from t settings max_threads = 3, read_backoff_min_latency_ms = 1, read_backoff_max_throughput = 1000000000, read_backoff_min_interval_between_events_ms = 1, read_backoff_min_events = 1, read_backoff_min_concurrency = 1;
select count(), sum(length(s)) from t settings max_threads = 3, read_backoff_min_latency_ms = 1, read_backoff_max_throughput = 1000000000, read_backoff_min_interval_between_events_ms = 1, read_backoff_min_events = 1, read_backoff_min_concurrency = 1;
drop table if exists t;