mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Added a test that checks that read from MergeTree with single thread is performed in order
This commit is contained in:
parent
fd81507a9b
commit
8f71c74345
@ -0,0 +1 @@
|
||||
[1]
|
@ -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;
|
Loading…
Reference in New Issue
Block a user