H3_COMPACT_CELLS_STRINGS

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns an array of VARIANT values that contain the VARCHAR hexadecimal IDs of fewer, larger H3 cells that cover the same area as the H3 cells in the input. For information about compacted cells, see Indexing.

Syntax

H3_COMPACT_CELLS_STRINGS( <array_of_cell_ids> )

Parameters

NameRequiredDescription
array_of_cell_idsrequiredAn array of VARIANT values that contain the VARCHAR hexadecimal values that represent H3 cell IDs (indexes).

Returns

Returns a value of the ARRAY data type or NULL. - If the input is an array of VARCHAR hexadecimal values, returns an array that consists of VARIANT values that represent a compacted set of H3 cells. The VARIANT values contain the VARCHAR hexadecimal values that represent H3 cell IDs. - If the input is NULL, returns NULL without reporting an error.

Usage notes