我有兴趣运行每日CQ,以便从午夜到午夜(24小时)对数据进行下采样,但是每天凌晨2点执行。
例如:
我希望它像这样汇总数据:
Run between: 2019-10-01T00:00:00 to 2019-10-02T00:00:00
Executed at: 2019-10-02T02:00:00
当前我的CQ如下:
CREATE CONTINUOUS QUERY daily ON test
BEGIN
SELECT MEAN("available") AS "available"
INTO downsampled
FROM availability
GROUP BY time(24h), *
END
那有可能吗?