Debian Codegraph @

test/command/suite/sharding/logical_select/cache/drilldowns/columns/value.expected

raw
1 plugin_register sharding
2 [[0,0.0,0.0],true]
3 table_create Items TABLE_HASH_KEY ShortText
4 [[0,0.0,0.0],true]
5 column_create Items price COLUMN_SCALAR UInt32
6 [[0,0.0,0.0],true]
7 table_create Logs_20170315 TABLE_NO_KEY
8 [[0,0.0,0.0],true]
9 column_create Logs_20170315 timestamp COLUMN_SCALAR Time
10 [[0,0.0,0.0],true]
11 column_create Logs_20170315 items COLUMN_VECTOR Items
12 [[0,0.0,0.0],true]
13 table_create Logs_20170316 TABLE_NO_KEY
14 [[0,0.0,0.0],true]
15 column_create Logs_20170316 timestamp COLUMN_SCALAR Time
16 [[0,0.0,0.0],true]
17 column_create Logs_20170316 items COLUMN_VECTOR Items
18 [[0,0.0,0.0],true]
19 table_create Logs_20170317 TABLE_NO_KEY
20 [[0,0.0,0.0],true]
21 column_create Logs_20170317 timestamp COLUMN_SCALAR Time
22 [[0,0.0,0.0],true]
23 column_create Logs_20170317 items COLUMN_VECTOR Items
24 [[0,0.0,0.0],true]
25 load --table Items
26 [
27 {"_key": "Book", "price": 1000},
28 {"_key": "Note", "price": 1000},
29 {"_key": "Box", "price": 500},
30 {"_key": "Pen", "price": 500},
31 {"_key": "Food", "price": 500},
32 {"_key": "Drink", "price": 300}
33 ]
34 [[0,0.0,0.0],6]
35 load --table Logs_20170315
36 [
37 {"timestamp": "2017/03/15 00:00:00", "items": ["Book", "Note", "Box", "Pen"]},
38 {"timestamp": "2017/03/15 01:00:00", "items": ["Food", "Drink", "Pen"]}
39 ]
40 [[0,0.0,0.0],2]
41 load --table Logs_20170316
42 [
43 {"timestamp": "2017/03/16 10:00:00", "items": ["Pen", "Note", "Food", "Drink"]},
44 {"timestamp": "2017/03/16 11:00:00", "items": ["Note", "Box"]}
45 ]
46 [[0,0.0,0.0],2]
47 load --table Logs_20170317
48 [
49 {"timestamp": "2017/03/17 20:00:00", "items": ["Food", "Book"]},
50 {"timestamp": "2017/03/17 20:00:00", "items": ["Drink", "Note"]}
51 ]
52 [[0,0.0,0.0],2]
53 logical_select Logs --shard_key timestamp --output_columns _id --limit 0 --drilldowns[item].keys items --drilldowns[item].sort_keys price --drilldowns[item].output_columns _key,_nsubrecs,price,price_with_tax --drilldowns[item].columns[price_with_tax].stage initial --drilldowns[item].columns[price_with_tax].type UInt32 --drilldowns[item].columns[price_with_tax].flags COLUMN_SCALAR --drilldowns[item].columns[price_with_tax].value 'price * 1.05'
54 [
55 [
56 0,
57 0.0,
58 0.0
59 ],
60 [
61 [
62 [
63 6
64 ],
65 [
66 [
67 "_id",
68 "UInt32"
69 ]
70 ]
71 ],
72 {
73 "item": [
74 [
75 6
76 ],
77 [
78 [
79 "_key",
80 "ShortText"
81 ],
82 [
83 "_nsubrecs",
84 "Int32"
85 ],
86 [
87 "price",
88 "UInt32"
89 ],
90 [
91 "price_with_tax",
92 "UInt32"
93 ]
94 ],
95 [
96 "Drink",
97 3,
98 300,
99 315
100 ],
101 [
102 "Food",
103 3,
104 500,
105 525
106 ],
107 [
108 "Pen",
109 3,
110 500,
111 525
112 ],
113 [
114 "Box",
115 2,
116 500,
117 525
118 ],
119 [
120 "Book",
121 2,
122 1000,
123 1050
124 ],
125 [
126 "Note",
127 4,
128 1000,
129 1050
130 ]
131 ]
132 }
133 ]
134 ]
135 logical_select Logs --shard_key timestamp --output_columns _id --limit 0 --drilldowns[item].keys items --drilldowns[item].sort_keys price --drilldowns[item].output_columns _key,_nsubrecs,price,price_with_tax --drilldowns[item].columns[price_with_tax].stage initial --drilldowns[item].columns[price_with_tax].type UInt32 --drilldowns[item].columns[price_with_tax].flags COLUMN_SCALAR --drilldowns[item].columns[price_with_tax].value 'price * 1.08'
136 [
137 [
138 0,
139 0.0,
140 0.0
141 ],
142 [
143 [
144 [
145 6
146 ],
147 [
148 [
149 "_id",
150 "UInt32"
151 ]
152 ]
153 ],
154 {
155 "item": [
156 [
157 6
158 ],
159 [
160 [
161 "_key",
162 "ShortText"
163 ],
164 [
165 "_nsubrecs",
166 "Int32"
167 ],
168 [
169 "price",
170 "UInt32"
171 ],
172 [
173 "price_with_tax",
174 "UInt32"
175 ]
176 ],
177 [
178 "Drink",
179 3,
180 300,
181 324
182 ],
183 [
184 "Food",
185 3,
186 500,
187 540
188 ],
189 [
190 "Pen",
191 3,
192 500,
193 540
194 ],
195 [
196 "Box",
197 2,
198 500,
199 540
200 ],
201 [
202 "Book",
203 2,
204 1000,
205 1080
206 ],
207 [
208 "Note",
209 4,
210 1000,
211 1080
212 ]
213 ]
214 }
215 ]
216 ]