Debian Codegraph @

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

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