You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Zain Humayun (JIRA)" <ji...@apache.org> on 2017/06/08 21:40:18 UTC

[jira] [Comment Edited] (CALCITE-1819) Druid Adapter does not push the boolean operator "<>" as a filter correctly

    [ https://issues.apache.org/jira/browse/CALCITE-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16043490#comment-16043490 ] 

Zain Humayun edited comment on CALCITE-1819 at 6/8/17 9:39 PM:
---------------------------------------------------------------

{{mvn site}} fails on project "calcite" with exit code 1. 

Any idea why is succeeds on the master branch, but not mine?

Edit: I think i've found the problem


was (Author: zhumayun):
{{mvn site}} fails on project "calcite" with exit code 1. 

Any idea why is succeeds on the master branch, but not mine?

> Druid Adapter does not push the boolean operator "<>" as a filter correctly 
> ----------------------------------------------------------------------------
>
>                 Key: CALCITE-1819
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1819
>             Project: Calcite
>          Issue Type: Bug
>          Components: druid
>    Affects Versions: 1.12.0
>            Reporter: Zain Humayun
>            Assignee: Zain Humayun
>
> The query
> {code:sql}
> SELECT COUNT(DISTINCT "the_month") FROM "foodmart" WHERE "the_month" <> 'October';
> {code}
> Will produce a Druid query with the following filter:
> {code:javascript}
> "filter":{
>       "type":"not",
>       "fields":[
>          {
>             "type":"selector",
>             "dimension":"the_month",
>             "value":"October"
>          }
>       ]
>    }
> {code}
> But the expected filter should look like:
> {code:javascript}
> "filter":{
>       "type":"not",
>       "field":{
>             "type":"selector",
>             "dimension":"the_month",
>             "value":"October"
>          }
>    }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)