Debian Codegraph @

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

raw
1 plugin_register functions/time
2
3 table_create Timestamps TABLE_PAT_KEY Time
4
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
16 select Timestamps \
17 --sortby _id \
18 --limit -1 \
19 --output_columns '_key, time_classify_minute(_key)'