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

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

When I've looked into RexImplicationChecker it looked like I will not be able 
to get a rowType for it in every cases in which RexSimplify is being used.

The usage of predicates in RexSimplify seems to be a better way of doing this 
than my existing approach; I think that probably the last case could also be 
covered by examining the comparisions before simplifing more complex operands.
I'll take a look at it tomorrow :)

> 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