CLICKHOUSE-3211 add tests

This commit is contained in:
VadimPE 2018-08-10 14:27:55 +03:00
parent e8ebcc4d48
commit 6e461213bb
2 changed files with 25 additions and 0 deletions

View File

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

View File

@ -0,0 +1,19 @@
DROP TABLE IF EXISTS test.test;
CREATE TABLE test.test(val Int64) engine = Memory;
INSERT INTO test.test VALUES (1);
INSERT INTO test.test VALUES (2);
INSERT INTO test.test VALUES (3);
INSERT INTO test.test VALUES (4);
INSERT INTO test.test VALUES (5);
INSERT INTO test.test VALUES (6);
INSERT INTO test.test VALUES (7);
INSERT INTO test.test VALUES (8);
INSERT INTO test.test VALUES (9);
SELECT TOP 2 * FROM test.test;
SELECT TOP (2) * FROM test.test;
SELECT * FROM test.test LIMIT 2 OFFSET 2;
DROP TABLE test.test;