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

Zoltan Haindrich commented on CALCITE-2247:
-------------------------------------------

I've made some bad trials which have done that! :)
Currently in the 2. phase it 
[skips|https://github.com/apache/calcite/pull/680/files#diff-5f0afa01652e21f36d8d4172f9af4dfeR285]
 all the terms which were evaluated in the first round; so it shouldn't 
simplify a term based on itself.


> Add rule to push in condition condition into a related disjunctive expression
> -----------------------------------------------------------------------------
>
>                 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
>
> 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)

Reply via email to