You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2021/06/07 17:48:18 UTC

[GitHub] [calcite] amaliujia commented on a change in pull request #2420: [CALCITE-4606]Translate SEARCH rexnode to termsQuery in ElasticSearch Adapter

amaliujia commented on a change in pull request #2420:
URL: https://github.com/apache/calcite/pull/2420#discussion_r646815666



##########
File path: elasticsearch/src/main/java/org/apache/calcite/adapter/elasticsearch/PredicateAnalyzer.java
##########
@@ -179,6 +186,13 @@ private static boolean supportedRexCall(RexCall call) {
         default:
           return false;
         }
+      case INTERNAL:
+        switch (call.getKind()) {
+        case SEARCH:
+          return true;
+        default:
+          return false;

Review comment:
       Can you explain why SEARCH is true and others is false? Is the Search mapping to `IN` clause?




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

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