IS_INTEGER (Lakehouse v1)
Verifica se o valor JSON de entrada é um inteiro.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.is_integer(<expr>)Exemplos do Analyze
Seção intitulada “Exemplos do 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 │└────────────────────────────────────────────────────────────────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”IS_INTEGER( <expr> )Tipo de retorno
Seção intitulada “Tipo de retorno”Retorna true se o valor JSON de entrada for um inteiro e false caso contrário.
Exemplos de SQL
Seção intitulada “Exemplos de 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 │└───────────────────────────────────────────────────────────────────┘