Debian Codegraph @

test/command/suite/sharding/logical_count/condition/range/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 column_create Logs_20150203 message COLUMN_SCALAR Text
8
9 table_create Logs_20150204 TABLE_NO_KEY
10 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
11 column_create Logs_20150204 message COLUMN_SCALAR Text
12
13 table_create Logs_20150205 TABLE_NO_KEY
14 column_create Logs_20150205 timestamp COLUMN_SCALAR Time
15 column_create Logs_20150205 message COLUMN_SCALAR Text
16
17 load --table Logs_20150203
18 [
19 {"timestamp": "2015-02-03 23:59:58", "message": "Start"},
20 {"timestamp": "2015-02-03 23:59:58", "message": "Shutdown"},
21 {"timestamp": "2015-02-03 23:59:59", "message": "Start"},
22 {"timestamp": "2015-02-03 23:59:59", "message": "Shutdown"}
23 ]
24
25 load --table Logs_20150204
26 [
27 {"timestamp": "2015-02-04 00:00:00", "message": "Start"},
28 {"timestamp": "2015-02-04 00:00:00", "message": "Shutdown"},
29 {"timestamp": "2015-02-04 00:00:01", "message": "Start"},
30 {"timestamp": "2015-02-04 00:00:01", "message": "Shutdown"},
31 {"timestamp": "2015-02-04 23:59:59", "message": "Start"},
32 {"timestamp": "2015-02-04 23:59:59", "message": "Shutdown"}
33 ]
34
35 load --table Logs_20150205
36 [
37 {"timestamp": "2015-02-05 00:00:00", "message": "Start"},
38 {"timestamp": "2015-02-05 00:00:00", "message": "Shutdown"},
39 {"timestamp": "2015-02-05 00:00:01", "message": "Start"},
40 {"timestamp": "2015-02-05 00:00:01", "message": "Shutdown"}
41 ]
42
43 logical_count Logs timestamp \
44 --filter 'message == "Shutdown"' \
45 --max "2015-02-05 00:00:00" \
46 --max_border "include"
47