Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Funzione
Si applica a: Databricks SQL
Databricks Runtime 11.3 LTS e versioni successive
Restituisce true se l'input BIGINT o STRING è un ID cella H3 valido.
h3_isvalid ( expr )
expr
: espressione BIGINT o espressione STRING.
Valore di tipo BOOLEAN, che indica se l'input BIGINT o STRING corrisponde o meno a un ID cella H3 valido.
La funzione restituisce NULL se l'input è NULL.
-- 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