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

标签 visual-studio azure visual-studio-2015 azure-stream-analytics complex-event-processing

我们已遵循文档 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/

相关文章:

visual-studio - Git 还是颠覆?

visual-studio - 不同行中的 Resharper 属性

python - 无法解析 apiclient.discovery。该模块可能缺少智能感知

visual-studio - Visual Studio 2015 无法为 Cordova 项目创建发布版本

azure - 是否应该使用 Azure Synapse 的主存储作为数据湖?

azure - 使用高级应用服务计划运行函数应用时 10 分钟后超时

node.js - 尽管已链接,但从 Azure 静态 Web 应用程序调用应用服务 API 时仍获得未经授权 (401)

c++ - Visual Studio C++ 不会接受 >> 或 << 初始声明

visual-studio - "Scanning new and updated MEF components"

c# - 在 C# 项目中构建 VisualMicro Arduino 项目