isnull()isnull()
计算其唯一参数并返回一个 bool
值,指示该参数的计算结果是否为 null 值。Evaluates its sole argument and returns a bool
value indicating if the argument evaluates to a null value.
isnull(parse_json("")) == true
语法Syntax
isnull(
Expr)
isnull(
Expr)
返回Returns
true 或 false,具体取决于值是否为 null。True or false, depending on whether or not the value is null.
备注Notes
string
值不能为 null。string
values cannot be null. 使用 isempty 可确定类型string
的值是否为空。Use isempty to determine if a value of typestring
is empty or not.
xx | isnull(x) |
---|---|
"" |
false |
"x" |
false |
parse_json("") |
true |
parse_json("[]") |
false |
parse_json("{}") |
false |
示例Example
T | where isnull(PossiblyNull) | count