Debian Codegraph @

test/command/suite/sharding/logical_select/offset/negative.test

raw
1 #@on-error omit
2 plugin_register sharding
3 #@on-error default
4
5 table_create Logs_20150203 TABLE_NO_KEY
6 column_create Logs_20150203 timestamp COLUMN_SCALAR Time
7 column_create Logs_20150203 memo COLUMN_SCALAR ShortText
8 table_create Times_20150203 TABLE_PAT_KEY Time
9 column_create Times_20150203 timestamp_index COLUMN_INDEX Logs_20150203 timestamp
10
11 table_create Logs_20150204 TABLE_NO_KEY
12 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
13 column_create Logs_20150204 memo COLUMN_SCALAR ShortText
14 table_create Times_20150204 TABLE_PAT_KEY Time
15 column_create Times_20150204 timestamp_index COLUMN_INDEX Logs_20150204 timestamp
16
17 table_create Logs_20150205 TABLE_NO_KEY
18 column_create Logs_20150205 timestamp COLUMN_SCALAR Time
19 column_create Logs_20150205 memo COLUMN_SCALAR ShortText
20 table_create Times_20150205 TABLE_PAT_KEY Time
21 column_create Times_20150205 timestamp_index COLUMN_INDEX Logs_20150205 timestamp
22
23 load --table Logs_20150203
24 [
25 {
26 "timestamp": "2015-02-03 12:49:00",
27 "memo": "2015-02-03 12:49:00"
28 },
29 {
30 "timestamp": "2015-02-03 23:59:59",
31 "memo": "2015-02-03 23:59:59"
32 }
33 ]
34
35 load --table Logs_20150204
36 [
37 {
38 "timestamp": "2015-02-04 00:00:00",
39 "memo": "2015-02-04 00:00:00"
40 },
41 {
42 "timestamp": "2015-02-04 13:49:00",
43 "memo": "2015-02-04 13:49:00"
44 },
45 {
46 "timestamp": "2015-02-04 13:50:00",
47 "memo": "2015-02-04 13:50:00"
48 }
49 ]
50
51 load --table Logs_20150205
52 [
53 {
54 "timestamp": "2015-02-05 13:49:00",
55 "memo": "2015-02-05 13:49:00"
56 },
57 {
58 "timestamp": "2015-02-05 13:50:00",
59 "memo": "2015-02-05 13:50:00"
60 },
61 {
62 "timestamp": "2015-02-05 13:51:00",
63 "memo": "2015-02-05 13:51:00"
64 },
65 {
66 "timestamp": "2015-02-05 13:52:00",
67 "memo": "2015-02-05 13:52:00"
68 }
69 ]
70
71 #@collect-query-log true
72 logical_select Logs timestamp \
73 --offset -5
74 #@collect-query-log false