You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jess Balint (JIRA)" <ji...@apache.org> on 2019/07/12 12:48:00 UTC

[jira] [Updated] (CALCITE-3192) Simplify OR incorrectly weaks condition

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

Jess Balint updated CALCITE-3192:
---------------------------------
    Description: 
RexSimplify is transforming
* {{OR(AND(>(999, $8), =($2, 'Franklin')), <(100, $8))}}
* to {{OR(=($2, 'Franklin'), <(100, $8))}}

the predicates are accumulated in {{simplifyOrTerms()}} but not discarded when iterating the second time

  was:RexSimplify is transforming {{OR(AND(>(999, $8), =($2, 'Franklin':VARCHAR(255))), <(100, $8))}} to {{OR(=($2, 'Franklin':VARCHAR(255)), <(100, $8))}}


> Simplify OR incorrectly weaks condition
> ---------------------------------------
>
>                 Key: CALCITE-3192
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3192
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Jess Balint
>            Priority: Major
>
> RexSimplify is transforming
> * {{OR(AND(>(999, $8), =($2, 'Franklin')), <(100, $8))}}
> * to {{OR(=($2, 'Franklin'), <(100, $8))}}
> the predicates are accumulated in {{simplifyOrTerms()}} but not discarded when iterating the second time



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)