snowflake.snowpark.functions.h3_get_resolution

snowflake.snowpark.functions.h3_get_resolution(cell_id: Union[snowflake.snowpark.column.Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.42.0/src/snowflake/snowpark/_functions/scalar_functions.py#L698-L716)

Returns the resolution of an H3 cell ID.

Parameters:

cell_id (ColumnOrName) – The H3 cell ID.

Returns:

The resolution of the H3 cell ID.

Return type:

Column

Example:

>>> df = session.create_dataframe([617540519050084351, 617540519050084352], schema=["cell_id"])
>>> df.select(h3_get_resolution(df["cell_id"]).alias("resolution")).collect()
[Row(RESOLUTION=9), Row(RESOLUTION=9)]
Copy
Language: English