yupeng9 commented on a change in pull request #7182: URL: https://github.com/apache/pinot/pull/7182#discussion_r675934268
########## File path: pinot-core/src/main/java/org/apache/pinot/core/geospatial/transform/function/ScalarFunctions.java ########## @@ -98,4 +99,16 @@ public static String stAsText(byte[] bytes) { GeometryUtils.setGeometry(geometry); return GeometrySerializer.serialize(geometry); } + + /** + * Gets the H3 hexagon address from the location + * @param latitude latitude of the location + * @param longitude longitude of the location + * @param resolution H3 index resolution + * @return the H3 index address + */ + @ScalarFunction + public static long geoToH3(double longitude, double latitude, int resolution) { + return H3Utils.H3_CORE.geoToH3(latitude, longitude, resolution); + } Review comment: how does the signature match with same name? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org