当我尝试使用最后一个功能时(https://msdn.microsoft.com/en-us/library/azure/mt421186.aspx)。我收到以下错误:
编译查询失败。
SELECT
deviceId
,System.TimeStamp as timestamp
,avg(events.externaltemp) as externaltemp
,LAST(System.Timestamp) OVER (PARTITION BY deviceId LIMIT DURATION(second, 1) when [externaltemp] is not null ) as Latest
INTO
[powerBI]
FROM
[EventHub] as events timestamp by [timestamp]
GROUP BY deviceId, TumblingWindow(second,1)
我的最后一个函数看起来与 msdn 示例中的函数非常相似,所以我不确定为什么会出现问题。