You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "ashishjayamohan (via GitHub)" <gi...@apache.org> on 2025/03/13 00:25:10 UTC

[PR] Add `GridDistance` H3 Function [pinot]

ashishjayamohan opened a new pull request, #15259:
URL: https://github.com/apache/pinot/pull/15259

   - Addresses: https://github.com/apache/pinot/issues/14703
   - Adds `GridDistance` function from H3
   - Adds `GridDistanceFunctionTest` with relevant tests for new `GridDistance` function


-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "ashishjayamohan (via GitHub)" <gi...@apache.org>.
ashishjayamohan commented on PR #15259:
URL: https://github.com/apache/pinot/pull/15259#issuecomment-2720050377

   @bziobrowski Mind taking a look at this?


-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on code in PR #15259:
URL: https://github.com/apache/pinot/pull/15259#discussion_r2004100128


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/H3Utils.java:
##########
@@ -42,13 +43,19 @@ private H3Utils() {
   }
 
   public static final H3CoreV3 H3_CORE;
+  public static final H3Core H3_CORE_INSTANCE;
 
   static {
     try {
       H3_CORE = H3CoreV3.newInstance();
     } catch (IOException e) {
       throw new RuntimeException("Failed to instantiate H3 V3 instance", e);
     }
+    try {
+      H3_CORE_INSTANCE = H3Core.newInstance();

Review Comment:
   Seems `H3Core` is preferred over `H3CoreV3`. Currently the naming is confusing. Suggest renaming `H3_CORE` to H3_CORE_V3`, and we should clean it up later



-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "ashishjayamohan (via GitHub)" <gi...@apache.org>.
ashishjayamohan commented on code in PR #15259:
URL: https://github.com/apache/pinot/pull/15259#discussion_r2004441717


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/H3Utils.java:
##########
@@ -42,13 +43,19 @@ private H3Utils() {
   }
 
   public static final H3CoreV3 H3_CORE;
+  public static final H3Core H3_CORE_INSTANCE;
 
   static {
     try {
       H3_CORE = H3CoreV3.newInstance();
     } catch (IOException e) {
       throw new RuntimeException("Failed to instantiate H3 V3 instance", e);
     }
+    try {
+      H3_CORE_INSTANCE = H3Core.newInstance();

Review Comment:
   Cool, just removed the v3 instance, since it seems like I'm only using it in the test. Can file another PR removing this entirely in the future if necessary.



-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang merged PR #15259:
URL: https://github.com/apache/pinot/pull/15259


-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "ashishjayamohan (via GitHub)" <gi...@apache.org>.
ashishjayamohan commented on PR #15259:
URL: https://github.com/apache/pinot/pull/15259#issuecomment-2745146922

   Yep, just opened a PR here: https://github.com/pinot-contrib/pinot-docs/pull/419


-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #15259:
URL: https://github.com/apache/pinot/pull/15259#issuecomment-2719484759

   ## [Codecov](https://app.codecov.io/gh/apache/pinot/pull/15259?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   Attention: Patch coverage is `16.66667%` with `25 lines` in your changes missing coverage. Please review.
   > Project coverage is 63.52%. Comparing base [(`59551e4`)](https://app.codecov.io/gh/apache/pinot/commit/59551e45224f1535c4863fd577622b37366ccc97?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`5fc972f`)](https://app.codecov.io/gh/apache/pinot/commit/5fc972f1ebdb13d91f4a03cf3eb4727fb24db815?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 1837 commits behind head on master.
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/pinot/pull/15259?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...atial/transform/function/GridDistanceFunction.java](https://app.codecov.io/gh/apache/pinot/pull/15259?src=pr&el=tree&filepath=pinot-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fpinot%2Fcore%2Fgeospatial%2Ftransform%2Ffunction%2FGridDistanceFunction.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cGlub3QtY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcGlub3QvY29yZS9nZW9zcGF0aWFsL3RyYW5zZm9ybS9mdW5jdGlvbi9HcmlkRGlzdGFuY2VGdW5jdGlvbi5qYXZh) | 0.00% | [23 Missing :warning: ](https://app.codecov.io/gh/apache/pinot/pull/15259?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [.../org/apache/pinot/segment/local/utils/H3Utils.java](https://app.codecov.io/gh/apache/pinot/pull/15259?src=pr&el=tree&filepath=pinot-segment-local%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fpinot%2Fsegment%2Flocal%2Futils%2FH3Utils.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cGlub3Qtc2VnbWVudC1sb2NhbC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcGlub3Qvc2VnbWVudC9sb2NhbC91dGlscy9IM1V0aWxzLmphdmE=) | 50.00% | [2 Missing :warning: ](https://app.codecov.io/gh/apache/pinot/pull/15259?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #15259      +/-   ##
   ============================================
   + Coverage     61.75%   63.52%   +1.76%     
   - Complexity      207     1367    +1160     
   ============================================
     Files          2436     2773     +337     
     Lines        133233   156275   +23042     
     Branches      20636    23983    +3347     
   ============================================
   + Hits          82274    99266   +16992     
   - Misses        44911    49524    +4613     
   - Partials       6048     7485    +1437     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [custom-integration1](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [integration](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [integration1](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [integration2](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [java-11](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [java-21](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `63.52% <16.66%> (+1.89%)` | :arrow_up: |
   | [skip-bytebuffers-false](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `63.48% <16.66%> (+1.73%)` | :arrow_up: |
   | [skip-bytebuffers-true](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `63.49% <16.66%> (+35.76%)` | :arrow_up: |
   | [temurin](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `63.52% <16.66%> (+1.76%)` | :arrow_up: |
   | [unittests](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `63.52% <16.66%> (+1.77%)` | :arrow_up: |
   | [unittests1](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.05% <16.66%> (+9.16%)` | :arrow_up: |
   | [unittests2](https://app.codecov.io/gh/apache/pinot/pull/15259/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `34.16% <6.66%> (+6.42%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/pinot/pull/15259?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   
   <details><summary>🚀 New features to boost your workflow: </summary>
   
   - ❄ [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - 📦 [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on code in PR #15259:
URL: https://github.com/apache/pinot/pull/15259#discussion_r2005987884


##########
pinot-core/src/main/java/org/apache/pinot/core/geospatial/transform/function/GridDistanceFunction.java:
##########
@@ -0,0 +1,84 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.pinot.core.geospatial.transform.function;
+
+import com.google.common.base.Preconditions;
+import java.util.List;
+import java.util.Map;
+import org.apache.pinot.core.operator.ColumnContext;
+import org.apache.pinot.core.operator.blocks.ValueBlock;
+import org.apache.pinot.core.operator.transform.TransformResultMetadata;
+import org.apache.pinot.core.operator.transform.function.BaseTransformFunction;
+import org.apache.pinot.core.operator.transform.function.TransformFunction;
+import org.apache.pinot.spi.data.FieldSpec;
+
+/**
+ * Function that calculates the grid distance between two H3 indexes.
+ * The function takes two arguments:
+ *  - gridDistance(firstH3Index, secondH3Index)
+ */
+public class GridDistanceFunction extends BaseTransformFunction {
+  public static final String FUNCTION_NAME = "gridDistance";
+  private TransformFunction _firstArgument;
+  private TransformFunction _secondArgument;
+
+  @Override
+  public String getName() {
+    return FUNCTION_NAME;
+  }
+
+  @Override
+  public void init(List<TransformFunction> arguments, Map<String, ColumnContext> columnContextMap) {
+    super.init(arguments, columnContextMap);
+    Preconditions.checkArgument(arguments.size() == 2,
+        "Transform function %s requires 2 arguments", getName());
+
+    TransformFunction transformFunction = arguments.get(0);
+    Preconditions.checkArgument(transformFunction.getResultMetadata().isSingleValue(),
+        "First argument must be single-valued for transform function: %s", getName());
+    _firstArgument = transformFunction;
+
+    transformFunction = arguments.get(1);
+    Preconditions.checkArgument(transformFunction.getResultMetadata().isSingleValue(),
+        "Second argument must be single-valued for transform function: %s", getName());
+    _secondArgument = transformFunction;
+  }
+
+  @Override
+  public TransformResultMetadata getResultMetadata() {
+    return new TransformResultMetadata(FieldSpec.DataType.LONG, true, false);
+  }
+
+  @Override
+  public long[] transformToLongValuesSV(ValueBlock valueBlock) {
+    int numDocs = valueBlock.getNumDocs();
+    initLongValuesSV(numDocs);
+
+    long[] firstH3Indexes = _firstArgument.transformToLongValuesSV(valueBlock);
+    long[] secondH3Indexes = _secondArgument.transformToLongValuesSV(valueBlock);
+
+    for (int i = 0; i < numDocs; i++) {
+      try {
+        _longValuesSV[i] = ScalarFunctions.gridDistance(firstH3Indexes[i], secondH3Indexes[i]);
+      } catch (Exception e) { }

Review Comment:
   Let's not swallow exception. Is there any expected exception?



-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "ashishjayamohan (via GitHub)" <gi...@apache.org>.
ashishjayamohan commented on code in PR #15259:
URL: https://github.com/apache/pinot/pull/15259#discussion_r2006076057


##########
pinot-core/src/main/java/org/apache/pinot/core/geospatial/transform/function/GridDistanceFunction.java:
##########
@@ -0,0 +1,84 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.pinot.core.geospatial.transform.function;
+
+import com.google.common.base.Preconditions;
+import java.util.List;
+import java.util.Map;
+import org.apache.pinot.core.operator.ColumnContext;
+import org.apache.pinot.core.operator.blocks.ValueBlock;
+import org.apache.pinot.core.operator.transform.TransformResultMetadata;
+import org.apache.pinot.core.operator.transform.function.BaseTransformFunction;
+import org.apache.pinot.core.operator.transform.function.TransformFunction;
+import org.apache.pinot.spi.data.FieldSpec;
+
+/**
+ * Function that calculates the grid distance between two H3 indexes.
+ * The function takes two arguments:
+ *  - gridDistance(firstH3Index, secondH3Index)
+ */
+public class GridDistanceFunction extends BaseTransformFunction {
+  public static final String FUNCTION_NAME = "gridDistance";
+  private TransformFunction _firstArgument;
+  private TransformFunction _secondArgument;
+
+  @Override
+  public String getName() {
+    return FUNCTION_NAME;
+  }
+
+  @Override
+  public void init(List<TransformFunction> arguments, Map<String, ColumnContext> columnContextMap) {
+    super.init(arguments, columnContextMap);
+    Preconditions.checkArgument(arguments.size() == 2,
+        "Transform function %s requires 2 arguments", getName());
+
+    TransformFunction transformFunction = arguments.get(0);
+    Preconditions.checkArgument(transformFunction.getResultMetadata().isSingleValue(),
+        "First argument must be single-valued for transform function: %s", getName());
+    _firstArgument = transformFunction;
+
+    transformFunction = arguments.get(1);
+    Preconditions.checkArgument(transformFunction.getResultMetadata().isSingleValue(),
+        "Second argument must be single-valued for transform function: %s", getName());
+    _secondArgument = transformFunction;
+  }
+
+  @Override
+  public TransformResultMetadata getResultMetadata() {
+    return new TransformResultMetadata(FieldSpec.DataType.LONG, true, false);
+  }
+
+  @Override
+  public long[] transformToLongValuesSV(ValueBlock valueBlock) {
+    int numDocs = valueBlock.getNumDocs();
+    initLongValuesSV(numDocs);
+
+    long[] firstH3Indexes = _firstArgument.transformToLongValuesSV(valueBlock);
+    long[] secondH3Indexes = _secondArgument.transformToLongValuesSV(valueBlock);
+
+    for (int i = 0; i < numDocs; i++) {
+      try {
+        _longValuesSV[i] = ScalarFunctions.gridDistance(firstH3Indexes[i], secondH3Indexes[i]);
+      } catch (Exception e) { }

Review Comment:
   Sounds good. I believe there was in V3, but not any more with `H3_CORE`. Removed the ignore try/catch.



-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "ashishjayamohan (via GitHub)" <gi...@apache.org>.
ashishjayamohan commented on PR #15259:
URL: https://github.com/apache/pinot/pull/15259#issuecomment-2741163913

   Sounds good, thanks Jackie!


-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on PR #15259:
URL: https://github.com/apache/pinot/pull/15259#issuecomment-2741384386

   @ashishjayamohan Can you help add documentation for this new function?


-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Add `GridDistance` H3 Function [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on code in PR #15259:
URL: https://github.com/apache/pinot/pull/15259#discussion_r2004165568


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/H3Utils.java:
##########
@@ -42,13 +43,19 @@ private H3Utils() {
   }
 
   public static final H3CoreV3 H3_CORE;
+  public static final H3Core H3_CORE_INSTANCE;
 
   static {
     try {
       H3_CORE = H3CoreV3.newInstance();
     } catch (IOException e) {
       throw new RuntimeException("Failed to instantiate H3 V3 instance", e);
     }
+    try {
+      H3_CORE_INSTANCE = H3Core.newInstance();

Review Comment:
   Created #15313 to migrate usage to v4



-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org