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 22:33:00 UTC
[jira] [Commented] (CALCITE-2585) Support NOT Operator in
ElasticSearch Adapter
[ https://issues.apache.org/jira/browse/CALCITE-2585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16624257#comment-16624257 ]
Andrei Sereda commented on CALCITE-2585:
----------------------------------------
Fixed in [2cba81732|https://git1-us-west.apache.org/repos/asf?p=calcite.git;a=commit;h=2cba81732]
> 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
> Fix For: 1.18.0
>
>
> {{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)