H3_K_RING (Lakehouse v1)
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.
Analyze Syntax
Section titled “Analyze Syntax”func.h3_k_ring(h3, k)Analyze Examples
Section titled “Analyze Examples”func.h3_k_ring(644325524701193974, 1)
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐│ func.h3_k_ring(644325524701193974, 1) │├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤│ [644325524701193974,644325524701193899,644325524701193869,644325524701193970,644325524701193968,644325524701193972,644325524701193897] │└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”H3_K_RING(h3, k)SQL Examples
Section titled “SQL Examples”SELECT H3_K_RING(644325524701193974, 1);
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐│ h3_k_ring(644325524701193974, 1) │├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤│ [644325524701193974,644325524701193899,644325524701193869,644325524701193970,644325524701193968,644325524701193972,644325524701193897] │└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘