简体   繁体   English

适用于Visual Studio的Azure流分析工具:执行聚合查询时出错-“对象引用未设置为对象的实例”

[英]Azure Stream Analytics tools for Visual Studio: Error when executing aggregated queries - “Object reference not set to an instance of an object”

We have followed the documentation Use Azure Stream Analytics tools for Visual Studio and made the Visual Studio capable of creating Azure Stream Analytics project. 我们遵循了文档“ 将Azure流分析工具用于Visual Studio” ,并使Visual Studio能够创建Azure流分析项目。

We have created an Azure Stream Analytics(ASA) job with Local Input data in the following JSON format: 我们已经使用以下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
    }
]

Then we are running the query locally as below: 然后,我们在本地运行查询,如下所示:

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

After executing the query, we are getting an error message as " Error : Object reference not set to an instance of an object. " 执行查询后,我们将收到一条错误消息“ 错误:对象引用未设置为对象的实例。

在此处输入图片说明

Open your Visual Studio IDE in Administrator mode, run your ASA query with local input and you will get the expected query result. 在管理员模式下打开Visual Studio IDE,使用本地输入运行ASA查询,您将获得预期的查询结果。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装 ASP.NET 和 Web Tools 2015 后出现 Visual Studio 错误“未将对象引用设置为对象的实例” - Visual Studio error "Object reference not set to an instance of an object" after install of ASP.NET and Web Tools 2015 Visual Studio 2015:创建Azure移动应用程序时,“对象引用未设置为对象的实例” - Visual Studio 2015: “Object reference not set to an instance of an object” when creating Azure Mobile App 对象引用未设置为Visual Studio 2013上的对象错误的实例 - Object reference not set to an instance of an object error on Visual Studio 2013 Visual Studio - 单击解决方案 - >属性时出错(对象引用未设置为对象的实例) - Visual Studio - Error when clicking on Solution -> Properties (Object reference not set to an instance of an object) 如何修复 Qt Visual Studio 工具“未将对象引用设置为对象的实例”? - How to fix Qt Visual Studio Tools "Object reference not set to an instance of an object"? Visual Studio 2017-TFS 2017-“对象引用未设置为对象的实例” - Visual Studio 2017 - TFS 2017 - “Object reference not set to an instance of an object” Visual Studio XAML设计窗口错误:对象引用未设置为对象的实例 - Visual Studio XAML Design Window Error: Object reference not set to an instance of an object 签出另一个分支后出现 Visual Studio git 错误“对象引用未设置到对象的实例” - Visual Studio git error "Object reference not set to an instance of an object" after checking out another branch 在visual studio 2013中打开cshtml文件时,对象引用未设置为对象的实例 - Object reference not set to an instance of an object when opening cshtml files in visual studio 2013 当我尝试添加参考时,Visual Studio 得到这个:Instance object set as constant - Visual studio when i try to add reference get this : Instance object set as constant
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM