Debian Codegraph @

test/command/suite/sharding/logical_count/condition/no_range.test

raw
1 #$GRN_ENABLE_REFERENCE_COUNT=yes
2 #@on-error omit
3 plugin_register sharding
4 #@on-error default
5
6 table_create Logs_20150203 TABLE_NO_KEY
7 column_create Logs_20150203 timestamp COLUMN_SCALAR Time
8 column_create Logs_20150203 message COLUMN_SCALAR Text
9
10 table_create Logs_20150204 TABLE_NO_KEY
11 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
12 column_create Logs_20150204 message COLUMN_SCALAR Text
13
14 table_create Logs_20150205 TABLE_NO_KEY
15 column_create Logs_20150205 timestamp COLUMN_SCALAR Time
16 column_create Logs_20150205 message COLUMN_SCALAR Text
17
18 load --table Logs_20150203
19 [
20 {"timestamp": "2015-02-03 12:49:00", "message": "Start"}
21 ]
22
23 load --table Logs_20150204
24 [
25 {"timestamp": "2015-02-04 13:49:00", "message": "Start"},
26 {"timestamp": "2015-02-04 13:50:00", "message": "Shutdown"}
27 ]
28
29 load --table Logs_20150205
30 [
31 {"timestamp": "2015-02-05 13:49:00", "message": "Start"},
32 {"timestamp": "2015-02-05 13:50:00", "message": "Running"},
33 {"timestamp": "2015-02-05 13:51:00", "message": "Shutdown"}
34 ]
35
36 #@add-important-log-levels dump
37 #@add-ignore-log-pattern /\A\[io\]/
38 log_level --level dump
39 logical_count Logs timestamp --filter 'message == "Shutdown"'
40 log_level --level notice
41 #@remove-ignore-log-pattern /\A\[io\]/
42 #@remove-important-log-levels dump