我正在使用如下所示的查询来跟踪特定字段的滚动总和:
SELECT id, SUM(quantity) AS quantity from stream \
WINDOW HOPPING (SIZE 1 MINUTE, ADVANCE BY 10 SECONDS) \
GROUP BY id;
现在,对于每个输入刻度,它似乎返回了 6 个不同的聚合值,我猜它们是针对以下时间段的:
[start, start+60] seconds
[start+10, start+60] seconds
[start+20, start+60] seconds
[start+30, start+60] seconds
[start+40, start+60] seconds
[start+50, start+60] seconds
如果我有兴趣只为每个进入的滴答获得 [start, start+60] 秒的结果。有没有办法只得到那个?