Debian Codegraph @

test/command/suite/select/cache/columns.expected

raw
1 table_create Items TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Items price COLUMN_SCALAR UInt32
4 [[0,0.0,0.0],true]
5 load --table Items
6 [
7 {"_key": "Book", "price": 1000},
8 {"_key": "Note", "price": 1000},
9 {"_key": "Box", "price": 520},
10 {"_key": "Pen", "price": 510},
11 {"_key": "Food", "price": 500},
12 {"_key": "Drink", "price": 300}
13 ]
14 [[0,0.0,0.0],6]
15 select Items --columns[price_with_tax].stage initial --columns[price_with_tax].type UInt32 --columns[price_with_tax].flags COLUMN_SCALAR --columns[price_with_tax].value 'price * 1.08'
16 [
17 [
18 0,
19 0.0,
20 0.0
21 ],
22 [
23 [
24 [
25 6
26 ],
27 [
28 [
29 "_id",
30 "UInt32"
31 ],
32 [
33 "_key",
34 "ShortText"
35 ],
36 [
37 "price_with_tax",
38 "UInt32"
39 ],
40 [
41 "price",
42 "UInt32"
43 ]
44 ],
45 [
46 1,
47 "Book",
48 1080,
49 1000
50 ],
51 [
52 2,
53 "Note",
54 1080,
55 1000
56 ],
57 [
58 3,
59 "Box",
60 561,
61 520
62 ],
63 [
64 4,
65 "Pen",
66 550,
67 510
68 ],
69 [
70 5,
71 "Food",
72 540,
73 500
74 ],
75 [
76 6,
77 "Drink",
78 324,
79 300
80 ]
81 ]
82 ]
83 ]
84 #>select --columns[price_with_tax].flags "COLUMN_SCALAR" --columns[price_with_tax].stage "initial" --columns[price_with_tax].type "UInt32" --columns[price_with_tax].value "price * 1.08" --table "Items"
85 #:000000000000000 columns[price_with_tax](6)
86 #:000000000000000 select(6)
87 #:000000000000000 output(6)
88 #:000000000000000 send(0)
89 #<000000000000000 rc=0
90 select Items --columns[price_with_tax].stage initial --columns[price_with_tax].type UInt32 --columns[price_with_tax].flags COLUMN_SCALAR --columns[price_with_tax].value 'price * 1.08'
91 [
92 [
93 0,
94 0.0,
95 0.0
96 ],
97 [
98 [
99 [
100 6
101 ],
102 [
103 [
104 "_id",
105 "UInt32"
106 ],
107 [
108 "_key",
109 "ShortText"
110 ],
111 [
112 "price_with_tax",
113 "UInt32"
114 ],
115 [
116 "price",
117 "UInt32"
118 ]
119 ],
120 [
121 1,
122 "Book",
123 1080,
124 1000
125 ],
126 [
127 2,
128 "Note",
129 1080,
130 1000
131 ],
132 [
133 3,
134 "Box",
135 561,
136 520
137 ],
138 [
139 4,
140 "Pen",
141 550,
142 510
143 ],
144 [
145 5,
146 "Food",
147 540,
148 500
149 ],
150 [
151 6,
152 "Drink",
153 324,
154 300
155 ]
156 ]
157 ]
158 ]
159 #>select --columns[price_with_tax].flags "COLUMN_SCALAR" --columns[price_with_tax].stage "initial" --columns[price_with_tax].type "UInt32" --columns[price_with_tax].value "price * 1.08" --table "Items"
160 #:000000000000000 cache(0)
161 #:000000000000000 send(0)
162 #<000000000000000 rc=0
163 select Items --columns[price_with_tax].stage initial --columns[price_with_tax].type UInt32 --columns[price_with_tax].flags COLUMN_SCALAR --columns[price_with_tax].value 'price * 1.08'
164 [
165 [
166 0,
167 0.0,
168 0.0
169 ],
170 [
171 [
172 [
173 6
174 ],
175 [
176 [
177 "_id",
178 "UInt32"
179 ],
180 [
181 "_key",
182 "ShortText"
183 ],
184 [
185 "price_with_tax",
186 "UInt32"
187 ],
188 [
189 "price",
190 "UInt32"
191 ]
192 ],
193 [
194 1,
195 "Book",
196 1080,
197 1000
198 ],
199 [
200 2,
201 "Note",
202 1080,
203 1000
204 ],
205 [
206 3,
207 "Box",
208 561,
209 520
210 ],
211 [
212 4,
213 "Pen",
214 550,
215 510
216 ],
217 [
218 5,
219 "Food",
220 540,
221 500
222 ],
223 [
224 6,
225 "Drink",
226 324,
227 300
228 ]
229 ]
230 ]
231 ]
232 #>select --columns[price_with_tax].flags "COLUMN_SCALAR" --columns[price_with_tax].stage "initial" --columns[price_with_tax].type "UInt32" --columns[price_with_tax].value "price * 1.08" --table "Items"
233 #:000000000000000 columns[price_with_tax](6)
234 #:000000000000000 select(6)
235 #:000000000000000 output(6)
236 #:000000000000000 send(0)
237 #<000000000000000 rc=0