Debian Codegraph @

test/command/suite/sharding/logical_select/no_condition/min_include_max_exclude.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 memo COLUMN_SCALAR ShortText
8 table_create Times_20150203 TABLE_PAT_KEY Time
9 column_create Times_20150203 timestamp_index COLUMN_INDEX Logs_20150203 timestamp
10
11 table_create Logs_20150204 TABLE_NO_KEY
12 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
13 column_create Logs_20150204 memo COLUMN_SCALAR ShortText
14 table_create Times_20150204 TABLE_PAT_KEY Time
15 column_create Times_20150204 timestamp_index COLUMN_INDEX Logs_20150204 timestamp
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 table_create Times_20150205 TABLE_PAT_KEY Time
21 column_create Times_20150205 timestamp_index COLUMN_INDEX Logs_20150205 timestamp
22
23 load --table Logs_20150203
24 [
25 {
26 "timestamp": "2015-02-03 12:49:00",
27 "memo": "2015-02-03 12:49:00"
28 },
29 {
30 "timestamp": "2015-02-03 23:59:59",
31 "memo": "2015-02-03 23:59:59"
32 }
33 ]
34
35 load --table Logs_20150204
36 [
37 {
38 "timestamp": "2015-02-04 00:00:00",
39 "memo": "2015-02-04 00:00:00"
40 },
41 {
42 "timestamp": "2015-02-04 00:00:01",
43 "memo": "2015-02-04 00:00:01"
44 },
45 {
46 "timestamp": "2015-02-04 13:49:00",
47 "memo": "2015-02-04 13:49:00"
48 },
49 {
50 "timestamp": "2015-02-04 13:50:00",
51 "memo": "2015-02-04 13:50:00"
52 },
53 {
54 "timestamp": "2015-02-04 23:59:59",
55 "memo": "2015-02-04 23:59:59"
56 }
57 ]
58
59 load --table Logs_20150205
60 [
61 {
62 "timestamp": "2015-02-05 00:00:00",
63 "memo": "2015-02-05 00:00:00"
64 },
65 {
66 "timestamp": "2015-02-05 13:49:00",
67 "memo": "2015-02-05 13:49:00"
68 },
69 {
70 "timestamp": "2015-02-05 13:50:00",
71 "memo": "2015-02-05 13:50:00"
72 },
73 {
74 "timestamp": "2015-02-05 13:51:00",
75 "memo": "2015-02-05 13:51:00"
76 },
77 {
78 "timestamp": "2015-02-05 13:52:00",
79 "memo": "2015-02-05 13:52:00"
80 },
81 {
82 "timestamp": "2015-02-05 13:53:00",
83 "memo": "2015-02-05 13:53:00"
84 }
85 ]
86
87 logical_select Logs timestamp \
88 --min "2015-02-04 00:00:00" \
89 --min_border "include" \
90 --max "2015-02-05 00:00:00" \
91 --max_border "exclude"