Debian Codegraph @

test/command/suite/sharding/logical_table_remove/range/min_include_max_include.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 00:00:01"},
30 {"timestamp": "2015-02-04 13:49:00"},
31 {"timestamp": "2015-02-04 13:50:00"},
32 {"timestamp": "2015-02-04 23:59:59"}
33 ]
34
35 load --table Logs_20150205
36 [
37 {"timestamp": "2015-02-05 00:00:00"},
38 {"timestamp": "2015-02-05 13:49:00"},
39 {"timestamp": "2015-02-05 13:50:00"},
40 {"timestamp": "2015-02-05 13:51:00"},
41 {"timestamp": "2015-02-05 13:52:00"},
42 {"timestamp": "2015-02-05 13:53:00"}
43 ]
44
45 logical_table_remove Logs timestamp \
46 --min "2015-02-04 00:00:00" \
47 --min_border "include" \
48 --max "2015-02-05 00:00:00" \
49 --max_border "include"
50
51 dump