📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

H3_K_RING



Returns an array containing the H3 indexes of the k-ring hexagons surrounding the input H3 index. Each element in this array is an H3 index.

Syntax

H3_K_RING(h3, k)

Examples

SELECT H3_K_RING(644325524701193974, 1); ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ h3_k_ring(644325524701193974, 1) │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ [644325524701193974,644325524701193899,644325524701193869,644325524701193970,644325524701193968,644325524701193972,644325524701193897] │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Was this page helpful?