mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Added test.
This commit is contained in:
parent
97dde2bcdf
commit
84ea10cc0a
@ -0,0 +1,7 @@
|
||||
1 1
|
||||
1 2
|
||||
1 3
|
||||
1 1
|
||||
1 2
|
||||
1 3
|
||||
1 4
|
12
tests/queries/0_stateless/01268_mergine_sorted_limit.sql
Normal file
12
tests/queries/0_stateless/01268_mergine_sorted_limit.sql
Normal file
@ -0,0 +1,12 @@
|
||||
DROP TABLE IF EXISTS tab;
|
||||
|
||||
CREATE TABLE tab (x UInt32, y UInt32) ENGINE = MergeTree() ORDER BY x;
|
||||
|
||||
INSERT INTO tab VALUES (1,1),(1,2),(1,3),(1,4),(1,5);
|
||||
|
||||
INSERT INTO tab VALUES (2,6),(2,7),(2,8),(2,9),(2,0);
|
||||
|
||||
SELECT * FROM tab ORDER BY x LIMIT 3;
|
||||
SELECT * FROM tab ORDER BY x LIMIT 4;
|
||||
|
||||
DROP TABLE IF EXISTS tab;
|
Loading…
Reference in New Issue
Block a user