Nota
O acesso a esta página requer autorização. Podes tentar iniciar sessão ou mudar de diretório.
O acesso a esta página requer autorização. Podes tentar mudar de diretório.
Função
Aplica-se a:
Databricks SQL
Databricks Runtime 11.3 LTS e superior
Retorna true se a entrada BIGINT ou STRING for um ID de célula H3 válido.
Sintaxe
h3_isvalid ( expr )
Argumentos
-
expr: Uma expressão BIGINT ou uma expressão STRING.
Devoluções
Um valor do tipo BOOLEAN, indicando se a entrada BIGINT ou STRING corresponde a um ID de célula H3 válido ou não.
A função retorna NULL se a entrada for NULL.
Exemplos
-- Simple example taking a long as input.
> SELECT h3_isvalid(599686042433355775);
true
-- Simple example taking a valid hexadecimal string as input.
> SELECT h3_isvalid('85283473fffffff');
true
-- Example taking a long as input that is not a valid H3 cell ID.
> SELECT h3_isvalid(599686042433355776);
false
-- Example where the input is an invalid hexadecimal string.
> SELECT h3_isvalid('I am not an H3 cell ID');
false