我刚刚创建了一个 Azure 流分析作业并配置了输入和输出,这个流分析作业将 Azure IoT 中心作为输入,它从 Azure IoT 开发工具包 MXChip 接收数据。但是我在输入作业拓扑详细信息中遇到错误,如下所示。
[4:10:13 PM] Fields referenced in query not found in input events
Fields Expected: TIME
Fields found: MESSAGEID, HUMIDITY
Missing fields: TIME
以下是我的查询。
WITH BasicOutput AS
(
SELECT
messageId,
System.TIMESTAMP AS TIME,
deviceId,
temperature,
humidity,
pressure,
pointInfo,
IoTHub,
EventEnqueuedUtcTime,
EventProcessedUtcTime,
PartitionId,
count(*) AS Count
FROM
Input TIMESTAMP By TIME
GROUP BY TUMBLINGWINDOW(minute, 2),
messageId,
deviceId,
temperature,
humidity,
pressure,
pointInfo,
IoTHub,
EventEnqueuedUtcTime,
EventProcessedUtcTime,
PartitionId
)
SELECT * INTO SQLServerOutput FROM BasicOutput
SELECT * INTO AzureFunctionOutput FROM BasicOutput
你有没有遇到过这个问题?非常感谢任何帮助。