[ https://issues.apache.org/jira/browse/CALCITE-3192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16883918#comment-16883918 ]
Jess Balint commented on CALCITE-3192: -------------------------------------- this seems to work but one new test failure arises which I haven't checked yet: https://github.com/jbalint/calcite/blob/e8b154db56bf4681f0affb3aa049abb72832678a/core/src/main/java/org/apache/calcite/rex/RexSimplify.java#L517 > 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 > Fix For: 1.21.0 > > > 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)