gpt4 book ai didi

visual-studio - 适用于 Visual Studio 的 Azure 流分析工具 : Error when executing aggregated queries - "Object reference not set to an instance of an object"

转载 作者:行者123 更新时间:2023-12-03 01:06:19 25 4
gpt4 key购买 nike

我们已遵循文档 Use Azure Stream Analytics tools for Visual Studio并使 Visual Studio 能够创建 Azure 流分析项目。

我们使用以下 JSON 格式的本地输入数据创建了一个 Azure 流分析 (ASA) 作业:

[
{
"Driver": "Lewis",
"Speed": 0.8275496959686279,
"Accelerator": 1,
"Brakes": 0,
"Steering": 0,
"ErsBattery": 0.9398990273475647,
"Gear": 0,
"LapTimeMs": 107,
"EventTime": "2016-04-01T00:00:00.107",
"PosX": 1593.4061279296875,
"PosY": 934.5406494140625,
"PosZ": 101.44535064697266
},
{
"Driver": "James",
"Speed": 1.8795902729034424,
"Accelerator": 1,
"Brakes": 0,
"Steering": 0,
"ErsBattery": 0.9865896105766296,
"Gear": 0,
"LapTimeMs": 107,
"EventTime": "2016-04-01T00:00:00.107",
"PosX": 1593.3990478515625,
"PosY": 934.5374145507812,
"PosZ": 101.44610595703125
},
{
"Driver": "Damon",
"Speed": 0.4023849666118622,
"Accelerator": 1,
"Brakes": 0,
"Steering": 0,
"ErsBattery": 1,
"Gear": 0,
"LapTimeMs": 108,
"EventTime": "2016-04-01T00:00:00.108",
"PosX": 1593.411865234375,
"PosY": 934.5435180664062,
"PosZ": 101.44485473632812
}
]

然后我们本地运行查询,如下所示:

SELECT Driver, AVG(Speed) AS AvgSpeed
FROM Input
GROUP BY Driver, TumblingWindow(second, 10)

执行查询后,我们收到一条错误消息“错误:未将对象引用设置到对象的实例。

enter image description here

最佳答案

在管理员模式下打开 Visual Studio IDE,使用本地输入运行 ASA 查询,您将获得预期的查询结果。

enter image description here

关于visual-studio - 适用于 Visual Studio 的 Azure 流分析工具 : Error when executing aggregated queries - "Object reference not set to an instance of an object",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47313224/

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