IS_INTEGER (Lakehouse v1)
Vérifie si la valeur JSON en entrée est un entier.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.is_integer(<expr>)Exemples Analyze
Section intitulée « Exemples 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 │└────────────────────────────────────────────────────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »IS_INTEGER( <expr> )Type de retour
Section intitulée « Type de retour »Renvoie true si la valeur JSON en entrée est un entier, et false dans le cas contraire.
Exemples SQL
Section intitulée « Exemples 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 │└───────────────────────────────────────────────────────────────────┘