Azure Stream Analytics - Error with customized “timestamp by” while applying window tumbling

前提是你 提交于 2019-12-01 12:55:35

According to https://msdn.microsoft.com/en-us/library/mt598501.aspx TIMESTAMP BY can only be used on input sources, so you would want to put that as part of your very first step:

WITH Datapackets AS
...
FROM h24 TIMESTAMP BY (expression)
...

Furthermore, from the same source, referring to System.TimeStamp when used with a GROUP BY over a window:

The timestamp of the result of the aggregate is the end of the time window to which this result corresponds.

So when you write System.TimeStamp in the final SELECT statement, it refers to the end of the current window.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!