WangCHX commented on code in PR #8498:
URL: https://github.com/apache/pinot/pull/8498#discussion_r849228990


##########
pinot-core/src/main/java/org/apache/pinot/core/plan/FilterPlanNode.java:
##########
@@ -182,7 +189,12 @@ private BaseFilterOperator 
constructPhysicalOperator(FilterContext filter, int n
         ExpressionContext lhs = predicate.getLhs();
         if (lhs.getType() == ExpressionContext.Type.FUNCTION) {
           if (canApplyH3Index(predicate, lhs.getFunction())) {
-            return new H3IndexFilterOperator(_indexSegment, predicate, 
numDocs);
+            String functionName = lhs.getFunction().getFunctionName();
+            if (functionName.equals("st_distance") || 
functionName.equals("stdistance")) {
+              return new H3IndexFilterOperator(_indexSegment, predicate, 
numDocs);
+            } else {

Review Comment:
   sure.



-- 
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

Reply via email to