简体   繁体   English

具有动态持续时间的翻滚窗口

[英]Tumbling window with dynamic duration

While passing reference data field as a duration in TumblingWindow I am getting compile time error related to Window duration require positive float constant. 在TumblingWindow中将参考数据字段作为持续时间传递时,与窗口持续时间相关的编译时错误需要正浮点常量。

Can anyone please guide? 有人可以指导吗?

group by TumblingWindow(minute, referencetable.EntryTime)

At the moment we don't support variable time windows, so you need to set the time explicitly and not load it from the reference data. 目前,我们不支持可变时间窗口,因此您需要显式设置时间,而不要从参考数据中加载时间。 Sorry for the inconvenience. 抱歉给你带来不便。

A workaround, in the case you have only few different time durations, would be to have different steps/subqueries for the different times and use a where clause to create or not an output for that step. 在只有几个不同的持续时间的情况下,一种变通方法是对不同的时间使用不同的步骤/子查询,并使用where子句为该步骤创建或不创建输出。

Let me know if you have further question. 如果您还有其他问题,请告诉我。

JS (from the Azure Stream Analytics team) JS(来自Azure流分析团队)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM