Added a test that checks that read from MergeTree with single thread is performed in order

This commit is contained in:
Alexey Milovidov 2020-03-19 22:54:36 +03:00
parent fd81507a9b
commit 8f71c74345
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
DROP TABLE IF EXISTS t;
CREATE TABLE t
(
number UInt64
)
ENGINE = MergeTree
ORDER BY number
SETTINGS index_granularity = 128;
INSERT INTO t SELECT number FROM numbers(10000000);
SET max_threads = 1, max_block_size = 12345;
SELECT arrayDistinct(arrayPopFront(arrayDifference(groupArray(number)))) FROM t;
DROP TABLE t;