Added test.

This commit is contained in:
Nikolai Kochetov 2020-05-04 20:25:50 +03:00
parent 97dde2bcdf
commit 84ea10cc0a
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,7 @@
1 1
1 2
1 3
1 1
1 2
1 3
1 4

View 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;