我知道我可以按如下方式创建流分析窗口:
TumblingWindow(second, 30)
这将使窗口每 30 秒固定一次。
是否可以将 30 秒设为动态?这意味着我们可以通过彼此获得多个窗口,并且所有窗口都按不同的时间安排进行。
我正在尝试引用输入文件,我想从引用文件中获取秒数,而不是在查询中固定。
如果我使用引用文件的输入创建窗口,则会收到错误:
Error : Invalid window duration: 'timespanInSeconds'. Window duration must be a positive float constant.
尽管它看起来是一个有效的 json 数字。我想做的事情可能吗?
最佳答案
我在文档中发现了一些内容: https://msdn.microsoft.com/en-us/azure/stream-analytics/reference/tumbling-window-azure-stream-analytics
它指出:
A big integer which describes the size of the window. The windowsize is static and cannot be changed dynamically at runtime.
关于基于可变时间的Azure流分析窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52153267/