A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.databricks.com/aws/en/sql/language-manual/functions/h3_ispentagon below:

h3_ispentagon function | Databricks Documentation

h3_ispentagon function

Applies to: Databricks SQL Databricks Runtime 11.3 LTS and above

Returns true if the input BIGINT or hexadecimal STRING corresponds to a pentagonal H3 cell or not.

Syntax​
h3_ispentagon ( h3CellIdExpr )
Arguments​ Returns​

A BOOLEAN value indicating whether the input BIGINT or hexadecimal STRING corresponds to a pentagonal H3 cell.

The function returns NULL if the input is NULL. The function does partial validation regarding whether the input argument is a valid H3 cell ID. A necessary, but not sufficient condition for a valid H3 ID is that its value is between 0x08001fffffffffff and 0x08ff3b6db6db6db6. The behavior of the function is undefined if the input cell ID is not a valid cell ID.

Error conditions​ Examples​

SQL

-- Simple example taking a long as input.
> SELECT h3_ispentagon(590112357393367039)
true

-- Simple example taking a hexadecimal string as input.
> SELECT h3_ispentagon('85283473fffffff')
false

-- Input is an invalid H3 cell ID.
> SELECT h3_ispentagon(0)
[H3_INVALID_CELL_ID] 0 is not a valid H3 cell ID
Related functions​

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4