跳转至
🎉 Apache Sedona 1.9.1 已正式发布!🗺️ 新增 Geography SQL 函数、Box2D 与 Box3D 类型、栅格 Python UDF 等。查看发布说明 →

ST_H3ToParent

Introduction: Returns the result of the H3 function cellToParent(cell, resolution). The requested resolution must be between 0 and the input cell's resolution, inclusive.

Format: ST_H3ToParent(cell: Long, resolution: Int)

Return type: Long

Since: v2.0.0

SQL Example

SELECT ST_H3ToParent(614552609325318143, 5)

Output:

+--------------------------------------------+
|st_h3toparent(614552609325318143, 5)        |
+--------------------------------------------+
|                          601041811137363967|
+--------------------------------------------+