hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Haindrich (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-20692) Enable folding of NOT x IS (NOT) [TRUE|FALSE] expressions
Date Mon, 08 Oct 2018 14:18:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-20692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zoltan Haindrich updated HIVE-20692:
------------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0.0
           Status: Resolved  (was: Patch Available)

pushed to master. Thank you Ashutosh for reviewing the changes!

> Enable folding of NOT x IS (NOT) [TRUE|FALSE] expressions
> ---------------------------------------------------------
>
>                 Key: HIVE-20692
>                 URL: https://issues.apache.org/jira/browse/HIVE-20692
>             Project: Hive
>          Issue Type: Improvement
>          Components: CBO
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>             Fix For: 4.0.0
>
>         Attachments: HIVE-20692.01.patch, HIVE-20692.01.patch, HIVE-20692.01.patch
>
>
> Expressions like: {{not ((a>0) is not true)}} could be rewritten to {{(a>0) is
true}}.
> However currently this doesn't happen because some of these functions are not translated
for Calcite.
> {code}
> create table t (a integer);
> explain select not ((a>0) is not true) from t group by a;
> [...]
> expressions: (not (_col0 > 0) is not true) (type: boolean) |
> [...]
> {code}



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

Mime
View raw message