Debian Codegraph @

test/command/suite/select/function/number/number_classify/uint32.expected

raw
1 plugin_register functions/number
2 [[0,0.0,0.0],true]
3 table_create Prices TABLE_PAT_KEY UInt32
4 [[0,0.0,0.0],true]
5 load --table Prices
6 [
7 {"_key": 0},
8 {"_key": 1},
9 {"_key": 99},
10 {"_key": 100},
11 {"_key": 101},
12 {"_key": 199},
13 {"_key": 200},
14 {"_key": 201}
15 ]
16 [[0,0.0,0.0],8]
17 select Prices --sortby _id --limit -1 --output_columns '_key, number_classify(_key, 100)'
18 [
19 [
20 0,
21 0.0,
22 0.0
23 ],
24 [
25 [
26 [
27 8
28 ],
29 [
30 [
31 "_key",
32 "UInt32"
33 ],
34 [
35 "number_classify",
36 null
37 ]
38 ],
39 [
40 0,
41 0
42 ],
43 [
44 1,
45 0
46 ],
47 [
48 99,
49 0
50 ],
51 [
52 100,
53 100
54 ],
55 [
56 101,
57 100
58 ],
59 [
60 199,
61 100
62 ],
63 [
64 200,
65 200
66 ],
67 [
68 201,
69 200
70 ]
71 ]
72 ]
73 ]