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

[jira] [Created] (HIVE-20692) IS (NOT) [TRUE|FALSE] logic functions are not folded by Calcite

Zoltan Haindrich created HIVE-20692:
---------------------------------------

             Summary: IS (NOT) [TRUE|FALSE] logic functions are not folded by Calcite
                 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


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)