Debian Codegraph @

test/command/suite/sharding/logical_table_remove/range/min_exclude.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 table_create Times_20150203 TABLE_PAT_KEY Time
8 column_create Times_20150203 timestamp_index COLUMN_INDEX Logs_20150203 timestamp
9
10 table_create Logs_20150204 TABLE_NO_KEY
11 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
12 table_create Times_20150204 TABLE_PAT_KEY Time
13 column_create Times_20150204 timestamp_index COLUMN_INDEX Logs_20150204 timestamp
14
15 table_create Logs_20150205 TABLE_NO_KEY
16 column_create Logs_20150205 timestamp COLUMN_SCALAR Time
17 table_create Times_20150205 TABLE_PAT_KEY Time
18 column_create Times_20150205 timestamp_index COLUMN_INDEX Logs_20150205 timestamp
19
20 load --table Logs_20150203
21 [
22 {"timestamp": "2015-02-03 12:49:00"},
23 {"timestamp": "2015-02-03 23:59:59"}
24 ]
25
26 load --table Logs_20150204
27 [
28 {"timestamp": "2015-02-04 00:00:00"},
29 {"timestamp": "2015-02-04 13:49:00"},
30 {"timestamp": "2015-02-04 13:50:00"}
31 ]
32
33 load --table Logs_20150205
34 [
35 {"timestamp": "2015-02-05 13:49:00"},
36 {"timestamp": "2015-02-05 13:50:00"},
37 {"timestamp": "2015-02-05 13:51:00"},
38 {"timestamp": "2015-02-05 13:52:00"}
39 ]
40
41 logical_table_remove Logs timestamp \
42 --min "2015-02-04 00:00:00" \
43 --min_border "exclude"
44
45 dump