[
https://issues.apache.org/jira/browse/CALCITE-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde resolved CALCITE-4159.
----------------------------------
Fix Version/s: 1.26.0
Resolution: Fixed
Fixed in
[9ca61f02|https://github.com/apache/calcite/commit/9ca61f020d134032dac8167b83bf431f078e33c5].
> 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 40m
> 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)