【发布时间】:2015-05-18 18:03:59
【问题描述】:
我们有一个来自事件中心的 Json 事件输入流,格式如下:
...
{ "DeviceId": null, "ReportDateUtc": "2015-05-12T20:57:13.0000000Z", ... },
{ "DeviceId": "device123", "ReportDateUtc": "2015-05-12T20:57:13.0000000Z", ... }
...
当我试运行以下查询时,输出记录数为 0:
SELECT
*
FROM
[events-input]
WHERE DeviceId IS NULL
看起来 Json 空值并不完全是 SQL 空值,那么在查询中检查空值的正确方法是什么?
【问题讨论】:
标签: sql json azure-stream-analytics cortana-intelligence