You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2018/05/26 05:36:00 UTC

[jira] [Resolved] (CALCITE-2247) Simplify AND and OR conditions using predicates

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

Julian Hyde resolved CALCITE-2247.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.17.0

Fixed in [c3788056|http://git-wip-us.apache.org/repos/asf/calcite/commit/c3788056]; thanks for the PR, [~kgyrtkirk]!

> Simplify AND and OR conditions using predicates
> -----------------------------------------------
>
>                 Key: CALCITE-2247
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2247
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>             Fix For: 1.17.0
>
>
> Simplify expressions like: {code}a = 1 AND (a = 1 OR a = 2){code} to {code}a = 1{code}
> Conditions to apply will be:
> * in an AND condition there exists a comparison(c) and an OR (o)
> * o and c only reference 1 variable
> See HIVE-19097 for more info.



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