2019-07-15 20:06:20 +00:00
|
|
|
DROP TABLE IF EXISTS merge_tree;
|
|
|
|
CREATE TABLE merge_tree (x UInt8) ENGINE = MergeTree ORDER BY x;
|
|
|
|
INSERT INTO merge_tree SELECT 0 FROM numbers(1000000);
|
|
|
|
|
|
|
|
SET max_threads = 4;
|
|
|
|
SET max_rows_to_read = 1100000;
|
|
|
|
|
2019-07-15 20:26:22 +00:00
|
|
|
SET merge_tree_uniform_read_distribution = 1;
|
2019-07-15 20:06:20 +00:00
|
|
|
SELECT count() FROM merge_tree;
|
|
|
|
|
|
|
|
SET merge_tree_uniform_read_distribution = 0;
|
|
|
|
SELECT count() FROM merge_tree;
|
|
|
|
|
2019-07-15 20:26:22 +00:00
|
|
|
SET max_rows_to_read = 900000;
|
|
|
|
|
|
|
|
SET merge_tree_uniform_read_distribution = 1;
|
|
|
|
SELECT count() FROM merge_tree; -- { serverError 158 }
|
|
|
|
|
|
|
|
SET merge_tree_uniform_read_distribution = 0;
|
|
|
|
SELECT count() FROM merge_tree; -- { serverError 158 }
|
|
|
|
|
2019-07-15 20:06:20 +00:00
|
|
|
DROP TABLE merge_tree;
|