Debian Codegraph @

test/command/suite/sharding/logical_select/range/min_last_month_per_month.test

raw
1 #@on-error omit
2 plugin_register sharding
3 #@on-error default
4
5 table_create Logs_201512 TABLE_NO_KEY
6 column_create Logs_201512 timestamp COLUMN_SCALAR Time
7 column_create Logs_201512 memo COLUMN_SCALAR ShortText
8 table_create Times_201512 TABLE_PAT_KEY Time
9 column_create Times_201512 timestamp_index COLUMN_INDEX Logs_201512 timestamp
10
11 table_create Logs_201601 TABLE_NO_KEY
12 column_create Logs_201601 timestamp COLUMN_SCALAR Time
13 column_create Logs_201601 memo COLUMN_SCALAR ShortText
14 table_create Times_201601 TABLE_PAT_KEY Time
15 column_create Times_201601 timestamp_index COLUMN_INDEX Logs_201601 timestamp
16
17 load --table Logs_201512
18 [
19 {
20 "timestamp": "2015-12-31 00:00:00",
21 "memo": "2015-12-31 00:00:00"
22 },
23 {
24 "timestamp": "2015-12-31 23:59:59",
25 "memo": "2015-12-31 23:59:59"
26 }
27 ]
28
29 load --table Logs_201601
30 [
31 {
32 "timestamp": "2016-01-01 00:00:00",
33 "memo": "2016-01-01 00:00:00"
34 }
35 ]
36
37 logical_select Logs timestamp \
38 --min "2015-12-31 00:00:00" \
39 --min_border "include"