Debian Codegraph @

test/command/suite/select/function/time/time_classify_year/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": "2015-12-31 23:59:59.999999"},
9 {"_key": "2016-01-01 00:00:00.000000"},
10 {"_key": "2016-01-01 00:00:00.000001"},
11 {"_key": "2016-12-31 23:59:59.999999"},
12 {"_key": "2017-01-01 00:00:00.000000"},
13 {"_key": "2017-01-01 00:00:00.000001"}
14 ]
15 [[0,0.0,0.0],7]
16 select Timestamps --sortby _id --limit -1 --output_columns '_key, time_classify_year(_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_year",
35 null
36 ]
37 ],
38 [
39 0.0,
40 -32400.0
41 ],
42 [
43 1451573999.999999,
44 1420038000.0
45 ],
46 [
47 1451574000.0,
48 1451574000.0
49 ],
50 [
51 1451574000.000001,
52 1451574000.0
53 ],
54 [
55 1483196399.999999,
56 1451574000.0
57 ],
58 [
59 1483196400.0,
60 1483196400.0
61 ],
62 [
63 1483196400.000001,
64 1483196400.0
65 ]
66 ]
67 ]
68 ]