You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2017/05/16 17:04:04 UTC
[jira] [Comment Edited] (CALCITE-1794) Simplify AND numeric
comparisons when overlapping
[ https://issues.apache.org/jira/browse/CALCITE-1794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16012729#comment-16012729 ]
Jesus Camacho Rodriguez edited comment on CALCITE-1794 at 5/16/17 5:04 PM:
---------------------------------------------------------------------------
[~rusanu], _processRange_ in RexSimplify should be simplifying {{$1>10 AND $1>20}}, you might want to take a look at why that logic is not being triggered.
was (Author: jcamachorodriguez):
[~rusanu], _processRange_ in RexUtil should be simplifying {{$1>10 AND $1>20}}, you might want to take a look at why that logic is not being triggered.
> Simplify AND numeric comparisons when overlapping
> -------------------------------------------------
>
> Key: CALCITE-1794
> URL: https://issues.apache.org/jira/browse/CALCITE-1794
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Remus Rusanu
>
> Expressions such as {{$1<>1 and $1=2}} can be simplified to {{$1=2}}. Similar {{$1>10 AND $1>20}} can be simplified to {{$1>20}}. Such expressions are produced by the proposed solution for CALCITE-1790 (simplify boolean CASE to complex AND/OR).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)