H3_UNCOMPACT_CELLS

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns an array of VARIANT values that contain the INTEGER IDs of H3 cells at the specified resolution that cover the same area as the H3 cells in the input.

Syntax

H3_UNCOMPACT_CELLS( <array_of_cell_ids> , <target_resolution> )

Parameters

NameRequiredDescription
array_of_cell_idsrequiredAn array of VARIANT values that contain INTEGER values that represent H3 cell IDs (indexes).
target_resolutionrequiredAn INTEGER value between 0 and 15 (inclusive) specifying the H3 resolution that you want to use for the returned H3 cells. Specifying any other INTEGER value results in an error.

Returns

Returns a value of the ARRAY data type or NULL. - If the input is an array of VARIANT values that contain INTEGER values, returns an array of VARIANT values that contain the INTEGER values that represent the set of H3 cells at the specified resolution. - If the input is NULL, returns NULL without reporting an error.

Usage notes