add tests

This commit is contained in:
Guillaume Tassery 2020-05-11 12:48:19 +07:00
parent c7dfe9e93d
commit 9ed397bc2c
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,45 @@
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

View File

@ -0,0 +1,13 @@
DROP TABLE IF EXISTS offset_without_limit;
CREATE TABLE offset_without_limit (
value UInt32
) Engine = MergeTree()
PRIMARY KEY value
ORDER BY value;
INSERT INTO offset_without_limit SELECT * FROM system.numbers LIMIT 50;
SELECT value FROM offset_without_limit ORDER BY value OFFSET 5;
DROP TABLE offset_without_limit;