You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Ruben Q L (Jira)" <ji...@apache.org> on 2020/09/16 09:56:00 UTC

[jira] [Commented] (CALCITE-4159) RexSimplify should simplify more always true OR expressions

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

Ruben Q L commented on CALCITE-4159:
------------------------------------

This ticket seems to have caused a regression: CALCITE-4258

> RexSimplify should simplify more always true OR expressions
> -----------------------------------------------------------
>
>                 Key: CALCITE-4159
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4159
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Steven Talbot
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.26.0
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The following filters for a number are always true
> {noformat}
> x > 0 or x <= 0 or x is null
> x < 0 or x >= 0 or x is null
> x < 1 or x > 0 or x is null{noformat}
> where the 1/0 can be replaced by any number where the first is greater than the second
>  
> The following filter for a varchar is always true:
> {noformat}
> x LIKE '%' OR x is null{noformat}
> It would be nice if RexSimplify.simplifyOrTerms handled these cases.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)