Debian Codegraph @

test/command/suite/select/function/time/time_classify_day_of_week/valid.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-06 00:00:00.000001"},
9 {"_key": "2016-05-06 23:59:59.999999"},
10 {"_key": "2016-05-07 00:00:00.000000"},
11 {"_key": "2016-05-07 00:00:00.000001"},
12 {"_key": "2016-05-08 23:59:59.999999"},
13 {"_key": "2016-05-08 00:00:00.000000"}
14 ]
15
16 select Timestamps \
17 --sortby _id \
18 --limit -1 \
19 --output_columns '_key, time_classify_day_of_week(_key)'