IS_INTEGER(Lakehouse v1)
检查输入的 JSON 值是否为整数。
Analyze 语法
Section titled “Analyze 语法”func.is_integer(<expr>)Analyze 示例
Section titled “Analyze 示例”func.is_integer(func.parse_json('123')), func.is_integer(func.parse_json('[1,2,3]'))┌────────────────────────────────────────────────────────────────────────────────────────┐│ func.is_integer(func.parse_json('123')) │ func.is_integer(func.parse_json('[1,2,3]')) │├──────────────────────────────────────────┼─────────────────────────────────────────────┤│ true │ false │└────────────────────────────────────────────────────────────────────────────────────────┘SQL 语法
Section titled “SQL 语法”IS_INTEGER( <expr> )如果输入的 JSON 值是整数,则返回 true,否则返回 false。
SQL 示例
Section titled “SQL 示例”SELECT IS_INTEGER(PARSE_JSON('123')), IS_INTEGER(PARSE_JSON('[1,2,3]'));
┌───────────────────────────────────────────────────────────────────┐│ is_integer(parse_json('123')) │ is_integer(parse_json('[1,2,3]')) │├───────────────────────────────┼───────────────────────────────────┤│ true │ false │└───────────────────────────────────────────────────────────────────┘