Hi. I am from GreptimeDB team. We use h3o library to implement h3 functions:
https://docs.greptime.com/reference/sql/functions/geo/#h3
These functions encode and decode latitude/longitude to H3 cells and provide utilities for querying cell properties, neighborhoods, distances, and relationships.