You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Andrei Sereda (JIRA)" <ji...@apache.org> on 2018/09/21 21:05:00 UTC
[jira] [Updated] (CALCITE-2585) Support NOT Operator in
ElasticSearch Adapter
[ https://issues.apache.org/jira/browse/CALCITE-2585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Sereda updated CALCITE-2585:
-----------------------------------
Description:
{{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 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.
was:
{{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.
> 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
> Priority: Major
>
> {{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 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)