Debian Codegraph @

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

raw
1 plugin_register functions/number
2 [[0,0.0,0.0],true]
3 table_create Prices TABLE_PAT_KEY Float
4 [[0,0.0,0.0],true]
5 load --table Prices
6 [
7 {"_key": -200.5},
8 {"_key": -200},
9 {"_key": -199.5},
10 {"_key": -100.5},
11 {"_key": -100},
12 {"_key": -99.5},
13 {"_key": -0.5},
14 {"_key": 0.0},
15 {"_key": 0.5},
16 {"_key": 99.5},
17 {"_key": 100},
18 {"_key": 100.5},
19 {"_key": 199.5},
20 {"_key": 200},
21 {"_key": 200.5}
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 "Float"
40 ],
41 [
42 "number_classify",
43 null
44 ]
45 ],
46 [
47 -200.5,
48 -300.0
49 ],
50 [
51 -200.0,
52 -200.0
53 ],
54 [
55 -199.5,
56 -200.0
57 ],
58 [
59 -100.5,
60 -200.0
61 ],
62 [
63 -100.0,
64 -100.0
65 ],
66 [
67 -99.5,
68 -100.0
69 ],
70 [
71 -0.5,
72 -100.0
73 ],
74 [
75 0.0,
76 0.0
77 ],
78 [
79 0.5,
80 0.0
81 ],
82 [
83 99.5,
84 0.0
85 ],
86 [
87 100.0,
88 100.0
89 ],
90 [
91 100.5,
92 100.0
93 ],
94 [
95 199.5,
96 100.0
97 ],
98 [
99 200.0,
100 200.0
101 ],
102 [
103 200.5,
104 200.0
105 ]
106 ]
107 ]
108 ]