gpt4 book ai didi

database - Azure 流分析输出到 Azure Cosmos DB

转载 作者:搜寻专家 更新时间:2023-10-30 22:05:44 25 4
gpt4 key购买 nike

流分析作业(iot hub 到 CosmosDB 输出)“启动”命令失败,并出现以下错误。

[12:49:30 PM] Source 'cosmosiot' had 1 occurrences of kind 'OutputDataConversionError.RequiredColumnMissing' between processing times '2019-04-17T02:49:30.2736530Z' and '2019-04-17T02:49:30.2736530Z'.

我按照说明进行操作,但不确定导致此错误的原因。请问有什么建议吗?这是 CosmosDB 查询:

SELECT
[bearings temperature],
[windings temperature],
[tower sway],
[position sensor],
[blade strain gauge],
[main shaft strain gauge],
[shroud accelerometer],
[gearbox fluid levels],
[power generation],
[EventProcessedUtcTime],
[EventEnqueuedUtcTime],
[IoTHub].[CorrelationId],
[IoTHub].[ConnectionDeviceId]
INTO
cosmosiot
FROM
TurbineData

最佳答案

如果您在查询中指定字段(即 Select Name, ModelNumber ...),而不是仅使用 Select * ...,则字段名称将被转换使用兼容性级别 1.0 时默认为小写,这会导致 Cosmos DB 失效。在门户中,如果您打开流分析作业并转到“配置”部分下的“兼容性级别”,然后选择 v1.1 或更高版本,应该可以解决问题。您可以在此处的流分析文档中阅读有关兼容性级别的更多信息:https://learn.microsoft.com/en-us/azure/stream-analytics/stream-analytics-compatibility-level

关于database - Azure 流分析输出到 Azure Cosmos DB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55719294/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com