Debian Codegraph @

test/command/suite/select/function/time/time_classify_minute/default.expected

raw
1 plugin_register functions/time
2 [[0,0.0,0.0],true]
3 table_create Timestamps TABLE_PAT_KEY Time
4 [[0,0.0,0.0],true]
5 load --table Timestamps
6 [
7 {"_key": 0},
8 {"_key": "2016-05-05 22:32:59.999999"},
9 {"_key": "2016-05-05 22:33:00.000000"},
10 {"_key": "2016-05-05 22:33:00.000001"},
11 {"_key": "2016-05-05 22:33:59.999999"},
12 {"_key": "2016-05-05 22:34:00.000000"},
13 {"_key": "2016-05-05 22:34:00.000001"}
14 ]
15 [[0,0.0,0.0],7]
16 select Timestamps --sortby _id --limit -1 --output_columns '_key, time_classify_minute(_key)'
17 [
18 [
19 0,
20 0.0,
21 0.0
22 ],
23 [
24 [
25 [
26 7
27 ],
28 [
29 [
30 "_key",
31 "Time"
32 ],
33 [
34 "time_classify_minute",
35 null
36 ]
37 ],
38 [
39 0.0,
40 0.0
41 ],
42 [
43 1462455179.999999,
44 1462455120.0
45 ],
46 [
47 1462455180.0,
48 1462455180.0
49 ],
50 [
51 1462455180.000001,
52 1462455180.0
53 ],
54 [
55 1462455239.999999,
56 1462455180.0
57 ],
58 [
59 1462455240.0,
60 1462455240.0
61 ],
62 [
63 1462455240.000001,
64 1462455240.0
65 ]
66 ]
67 ]
68 ]