Debian Codegraph @

test/command/suite/sharding/logical_select/offset/positive.expected

raw
1 plugin_register sharding
2 [[0,0.0,0.0],true]
3 table_create Logs_20150203 TABLE_NO_KEY
4 [[0,0.0,0.0],true]
5 column_create Logs_20150203 timestamp COLUMN_SCALAR Time
6 [[0,0.0,0.0],true]
7 column_create Logs_20150203 memo COLUMN_SCALAR ShortText
8 [[0,0.0,0.0],true]
9 table_create Times_20150203 TABLE_PAT_KEY Time
10 [[0,0.0,0.0],true]
11 column_create Times_20150203 timestamp_index COLUMN_INDEX Logs_20150203 timestamp
12 [[0,0.0,0.0],true]
13 table_create Logs_20150204 TABLE_NO_KEY
14 [[0,0.0,0.0],true]
15 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
16 [[0,0.0,0.0],true]
17 column_create Logs_20150204 memo COLUMN_SCALAR ShortText
18 [[0,0.0,0.0],true]
19 table_create Times_20150204 TABLE_PAT_KEY Time
20 [[0,0.0,0.0],true]
21 column_create Times_20150204 timestamp_index COLUMN_INDEX Logs_20150204 timestamp
22 [[0,0.0,0.0],true]
23 table_create Logs_20150205 TABLE_NO_KEY
24 [[0,0.0,0.0],true]
25 column_create Logs_20150205 timestamp COLUMN_SCALAR Time
26 [[0,0.0,0.0],true]
27 column_create Logs_20150205 memo COLUMN_SCALAR ShortText
28 [[0,0.0,0.0],true]
29 table_create Times_20150205 TABLE_PAT_KEY Time
30 [[0,0.0,0.0],true]
31 column_create Times_20150205 timestamp_index COLUMN_INDEX Logs_20150205 timestamp
32 [[0,0.0,0.0],true]
33 load --table Logs_20150203
34 [
35 {
36 "timestamp": "2015-02-03 12:49:00",
37 "memo": "2015-02-03 12:49:00"
38 },
39 {
40 "timestamp": "2015-02-03 23:59:59",
41 "memo": "2015-02-03 23:59:59"
42 }
43 ]
44 [[0,0.0,0.0],2]
45 load --table Logs_20150204
46 [
47 {
48 "timestamp": "2015-02-04 00:00:00",
49 "memo": "2015-02-04 00:00:00"
50 },
51 {
52 "timestamp": "2015-02-04 13:49:00",
53 "memo": "2015-02-04 13:49:00"
54 },
55 {
56 "timestamp": "2015-02-04 13:50:00",
57 "memo": "2015-02-04 13:50:00"
58 }
59 ]
60 [[0,0.0,0.0],3]
61 load --table Logs_20150205
62 [
63 {
64 "timestamp": "2015-02-05 13:49:00",
65 "memo": "2015-02-05 13:49:00"
66 },
67 {
68 "timestamp": "2015-02-05 13:50:00",
69 "memo": "2015-02-05 13:50:00"
70 },
71 {
72 "timestamp": "2015-02-05 13:51:00",
73 "memo": "2015-02-05 13:51:00"
74 },
75 {
76 "timestamp": "2015-02-05 13:52:00",
77 "memo": "2015-02-05 13:52:00"
78 }
79 ]
80 [[0,0.0,0.0],4]
81 logical_select Logs timestamp --offset 3
82 [
83 [
84 0,
85 0.0,
86 0.0
87 ],
88 [
89 [
90 [
91 9
92 ],
93 [
94 [
95 "_id",
96 "UInt32"
97 ],
98 [
99 "memo",
100 "ShortText"
101 ],
102 [
103 "timestamp",
104 "Time"
105 ]
106 ],
107 [
108 2,
109 "2015-02-04 13:49:00",
110 1423025340.0
111 ],
112 [
113 3,
114 "2015-02-04 13:50:00",
115 1423025400.0
116 ],
117 [
118 1,
119 "2015-02-05 13:49:00",
120 1423111740.0
121 ],
122 [
123 2,
124 "2015-02-05 13:50:00",
125 1423111800.0
126 ],
127 [
128 3,
129 "2015-02-05 13:51:00",
130 1423111860.0
131 ],
132 [
133 4,
134 "2015-02-05 13:52:00",
135 1423111920.0
136 ]
137 ]
138 ]
139 ]
140 #>logical_select --logical_table "Logs" --offset "3" --shard_key "timestamp"
141 #:000000000000000 select(2)[Logs_20150203]
142 #:000000000000000 select(3)[Logs_20150204]
143 #:000000000000000 select(4)[Logs_20150205]
144 #:000000000000000 output(6)
145 #:000000000000000 send(0)
146 #<000000000000000 rc=0