Debian Codegraph @

test/command/suite/select/function/time/time_classify_minute/interval.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": "2016-05-05 22:29:59.999999"},
8 {"_key": "2016-05-05 22:30:00.000000"},
9 {"_key": "2016-05-05 22:30:00.000001"},
10 {"_key": "2016-05-05 22:39:59.999999"},
11 {"_key": "2016-05-05 22:40:00.000000"},
12 {"_key": "2016-05-05 22:40:00.000001"}
13 ]
14 [[0,0.0,0.0],6]
15 select Timestamps --sortby _id --limit -1 --output_columns '_key, time_classify_minute(_key, 10)'
16 [
17 [
18 0,
19 0.0,
20 0.0
21 ],
22 [
23 [
24 [
25 6
26 ],
27 [
28 [
29 "_key",
30 "Time"
31 ],
32 [
33 "time_classify_minute",
34 null
35 ]
36 ],
37 [
38 1462454999.999999,
39 1462454400.0
40 ],
41 [
42 1462455000.0,
43 1462455000.0
44 ],
45 [
46 1462455000.000001,
47 1462455000.0
48 ],
49 [
50 1462455599.999999,
51 1462455000.0
52 ],
53 [
54 1462455600.0,
55 1462455600.0
56 ],
57 [
58 1462455600.000001,
59 1462455600.0
60 ]
61 ]
62 ]
63 ]