From 77fb3de2d6160e61459127f0872b585cbe9f9e62 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 15 Jul 2019 23:26:22 +0300 Subject: [PATCH] Improved test --- ...rm_read_distribution_and_max_rows_to_read.reference | 2 ++ ..._uniform_read_distribution_and_max_rows_to_read.sql | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.reference diff --git a/dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.reference b/dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.reference new file mode 100644 index 00000000000..fcd78da1283 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.reference @@ -0,0 +1,2 @@ +1000000 +1000000 diff --git a/dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.sql b/dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.sql index cdfcd105470..37d09a3d3dd 100644 --- a/dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.sql +++ b/dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.sql @@ -5,10 +5,18 @@ INSERT INTO merge_tree SELECT 0 FROM numbers(1000000); SET max_threads = 4; SET max_rows_to_read = 1100000; +SET merge_tree_uniform_read_distribution = 1; SELECT count() FROM merge_tree; SET merge_tree_uniform_read_distribution = 0; - SELECT count() FROM merge_tree; +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 } + DROP TABLE merge_tree;