Debian Codegraph @

test/command/suite/sharding/logical_select/drilldown/plain/keys/reference.test

raw
1 #@on-error omit
2 plugin_register sharding
3 #@on-error default
4
5 table_create Actions TABLE_HASH_KEY ShortText
6
7 table_create Logs_20150203 TABLE_NO_KEY
8 column_create Logs_20150203 timestamp COLUMN_SCALAR Time
9 column_create Logs_20150203 memo COLUMN_SCALAR ShortText
10 column_create Logs_20150203 action COLUMN_SCALAR Actions
11
12 table_create Logs_20150204 TABLE_NO_KEY
13 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
14 column_create Logs_20150204 memo COLUMN_SCALAR ShortText
15 column_create Logs_20150204 action COLUMN_SCALAR Actions
16
17 table_create Logs_20150205 TABLE_NO_KEY
18 column_create Logs_20150205 timestamp COLUMN_SCALAR Time
19 column_create Logs_20150205 memo COLUMN_SCALAR ShortText
20 column_create Logs_20150205 action COLUMN_SCALAR Actions
21
22 load --table Logs_20150203
23 [
24 {
25 "timestamp": "2015-02-03 12:49:00",
26 "memo": "2015-02-03 12:49:00",
27 "action": "Start"
28 },
29 {
30 "timestamp": "2015-02-03 23:59:59",
31 "memo": "2015-02-03 23:59:59",
32 "action": "Shutdown"
33 }
34 ]
35
36 load --table Logs_20150204
37 [
38 {
39 "timestamp": "2015-02-04 00:00:00",
40 "memo": "2015-02-04 00:00:00",
41 "action": "Start"
42 },
43 {
44 "timestamp": "2015-02-04 13:49:00",
45 "memo": "2015-02-04 13:49:00",
46 "action": "Restart"
47 },
48 {
49 "timestamp": "2015-02-04 13:50:00",
50 "memo": "2015-02-04 13:50:00",
51 "action": "Restart"
52 }
53 ]
54
55 load --table Logs_20150205
56 [
57 {
58 "timestamp": "2015-02-05 13:49:00",
59 "memo": "2015-02-05 13:49:00",
60 "action": "Restart"
61 },
62 {
63 "timestamp": "2015-02-05 13:50:00",
64 "memo": "2015-02-05 13:50:00",
65 "action": "Restart"
66 },
67 {
68 "timestamp": "2015-02-05 13:51:00",
69 "memo": "2015-02-05 13:51:00",
70 "action": "Restart"
71 },
72 {
73 "timestamp": "2015-02-05 13:52:00",
74 "memo": "2015-02-05 13:52:00",
75 "action": "Restart"
76 }
77 ]
78
79 logical_select Logs timestamp \
80 --limit 0 \
81 --drilldown action