You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Andrei Sereda (JIRA)" <ji...@apache.org> on 2018/09/21 21:05:00 UTC

[jira] [Created] (CALCITE-2585) Support NOT operator in ElasticSearch Adapter

Andrei Sereda created CALCITE-2585:
--------------------------------------

             Summary: Support NOT operator in ElasticSearch Adapter
                 Key: CALCITE-2585
                 URL: https://issues.apache.org/jira/browse/CALCITE-2585
             Project: Calcite
          Issue Type: Improvement
          Components: elasticsearch-adapter
            Reporter: Andrei Sereda
            Assignee: Julian Hyde


{{NOT}} boolean expressions should be correctly processed by Calcite (ES adapter): 
{code:sql}
select * from elastic where not foo = 1
select * from elastic where not foo in (1, 2, 3)
select * from elastic where foo not in (1, 2, 3)
select * from elastic where not foo in (1, 2, 3) and bar not in (42, 43, 44)
{code}
In elastic, they're converted to [must_not|https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html] BoolQuery.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)