mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test
This commit is contained in:
parent
f6c52fe1c2
commit
3aedef99ce
@ -0,0 +1,12 @@
|
||||
1
|
||||
999999
|
||||
100000
|
||||
899999
|
||||
100001
|
||||
900000
|
||||
1
|
||||
999999
|
||||
100000
|
||||
899999
|
||||
100001
|
||||
900000
|
@ -0,0 +1,32 @@
|
||||
DROP TABLE IF EXISTS test;
|
||||
CREATE TABLE test (x UInt64) ENGINE = MergeTree ORDER BY x SETTINGS index_granularity = 1000;
|
||||
INSERT INTO test SELECT * FROM numbers(1000000);
|
||||
OPTIMIZE TABLE test;
|
||||
|
||||
SET max_rows_to_read = 2000;
|
||||
SELECT count() FROM test WHERE x = 100000;
|
||||
SET max_rows_to_read = 1000000;
|
||||
SELECT count() FROM test WHERE x != 100000;
|
||||
SET max_rows_to_read = 101000;
|
||||
SELECT count() FROM test WHERE x < 100000;
|
||||
SET max_rows_to_read = 900000;
|
||||
SELECT count() FROM test WHERE x > 100000;
|
||||
SET max_rows_to_read = 101000;
|
||||
SELECT count() FROM test WHERE x <= 100000;
|
||||
SET max_rows_to_read = 901000;
|
||||
SELECT count() FROM test WHERE x >= 100000;
|
||||
|
||||
SET max_rows_to_read = 2000;
|
||||
SELECT count() FROM test WHERE x = '100000';
|
||||
SET max_rows_to_read = 1000000;
|
||||
SELECT count() FROM test WHERE x != '100000';
|
||||
SET max_rows_to_read = 101000;
|
||||
SELECT count() FROM test WHERE x < '100000';
|
||||
SET max_rows_to_read = 900000;
|
||||
SELECT count() FROM test WHERE x > '100000';
|
||||
SET max_rows_to_read = 101000;
|
||||
SELECT count() FROM test WHERE x <= '100000';
|
||||
SET max_rows_to_read = 901000;
|
||||
SELECT count() FROM test WHERE x >= '100000';
|
||||
|
||||
DROP TABLE test;
|
Loading…
Reference in New Issue
Block a user