Debian Codegraph @

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

raw
1 plugin_register functions/number
2 [[0,0.0,0.0],true]
3 table_create Prices TABLE_PAT_KEY Int32
4 [[0,0.0,0.0],true]
5 load --table Prices
6 [
7 {"_key": -201},
8 {"_key": -200},
9 {"_key": -199},
10 {"_key": -101},
11 {"_key": -100},
12 {"_key": -99},
13 {"_key": -1},
14 {"_key": 0},
15 {"_key": 1},
16 {"_key": 99},
17 {"_key": 100},
18 {"_key": 101},
19 {"_key": 199},
20 {"_key": 200},
21 {"_key": 201}
22 ]
23 [[0,0.0,0.0],15]
24 select Prices --sortby _id --limit -1 --output_columns '_key, number_classify(_key, 100)'
25 [
26 [
27 0,
28 0.0,
29 0.0
30 ],
31 [
32 [
33 [
34 15
35 ],
36 [
37 [
38 "_key",
39 "Int32"
40 ],
41 [
42 "number_classify",
43 null
44 ]
45 ],
46 [
47 -201,
48 -300
49 ],
50 [
51 -200,
52 -200
53 ],
54 [
55 -199,
56 -200
57 ],
58 [
59 -101,
60 -200
61 ],
62 [
63 -100,
64 -100
65 ],
66 [
67 -99,
68 -100
69 ],
70 [
71 -1,
72 -100
73 ],
74 [
75 0,
76 0
77 ],
78 [
79 1,
80 0
81 ],
82 [
83 99,
84 0
85 ],
86 [
87 100,
88 100
89 ],
90 [
91 101,
92 100
93 ],
94 [
95 199,
96 100
97 ],
98 [
99 200,
100 200
101 ],
102 [
103 201,
104 200
105 ]
106 ]
107 ]
108 ]