-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add useful H3 functions #14703
Comments
Hi, I would like to take on this issue, can someone please assign it to me, and if possible guide me towards the modules I need to work on. |
@bziobrowski I guess we should submit this issue to h3 repo because we are asking for these functionalities from their end |
@Jackie-Jiang those functionalities are already implemented in h3 repo, we just need to integrated within Pinot. |
@meshari343 I see. Assigned it to you. Let us know if you need more help, thanks! |
@meshari343 Are you still working on this? If not, can I take a crack at it? |
@ashishjayamohan , I still haven’t fully understood the design of the system, but since you’re interested on this issue then sure you’re more than welcome. |
Currently Apache Pinot makes use of H3 only in certain scenarios, e.g. to speed up predicates using st_distance function against h3-indexed points.
To fully utilize it, it should expose more functions available in com.uber.h3core.H3Core class, especially:
Example:
Assuming there's stores table with h3_pos long column (with inverted index) storing h3 index value (at resolution 8) of store's position, we could query for stores in closest 4 rings to given coordinates with:
or
There are many more functions that could be useful for expressing logic in terms of hexagons and hexagon distance that really suit H3.
See:
https://h3geo.org/docs/api/traversal
https://github.com/uber/h3-java/blob/master/src/main/java/com/uber/h3core/H3Core.java
The text was updated successfully, but these errors were encountered: