Debian Codegraph @

test/command/suite/select/function/time/time_classify_month/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-04-30 23:59:59.999999"},
8 {"_key": "2016-05-01 00:00:00.000000"},
9 {"_key": "2016-05-01 00:00:00.000001"},
10 {"_key": "2016-06-30 23:59:59.999999"},
11 {"_key": "2016-07-01 00:00:00.000000"},
12 {"_key": "2016-07-01 00:00:00.000001"}
13 ]
14 [[0,0.0,0.0],6]
15 select Timestamps --sortby _id --limit -1 --output_columns '_key, time_classify_month(_key, 2)'
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_month",
34 null
35 ]
36 ],
37 [
38 1462028399.999999,
39 1456758000.0
40 ],
41 [
42 1462028400.0,
43 1462028400.0
44 ],
45 [
46 1462028400.000001,
47 1462028400.0
48 ],
49 [
50 1467298799.999999,
51 1462028400.0
52 ],
53 [
54 1467298800.0,
55 1467298800.0
56 ],
57 [
58 1467298800.000001,
59 1467298800.0
60 ]
61 ]
62 ]
63 ]