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

Zoltan Haindrich edited comment on CALCITE-2730 at 12/10/18 3:20 PM:
---------------------------------------------------------------------

[~zabetak] the issue is with the fact that in the presence of {{x>0}} the other 
{{x>0}} is redundant. The issue happens in 
[processRange|https://github.com/apache/calcite/blob/f3655e15a11a9fb266af290cb390e690d4301c09/core/src/main/java/org/apache/calcite/rex/RexSimplify.java#L1676]
  - this part has it's own tricks...for now I think we might be fine if we 
would ensure that AND/OR operands are free of comparision duplicates (we may 
not compact: {{random(2) = 0 && random(2) = 0}} to {{random(2) = 0}} ).





was (Author: kgyrtkirk):
[~zabetak] the issue is with the fact that in the presence of {{x>0}} the other 
{{x>0}} is redundant. The issue happens in 
[processRange|https://github.com/apache/calcite/blob/f3655e15a11a9fb266af290cb390e690d4301c09/core/src/main/java/org/apache/calcite/rex/RexSimplify.java#L1676]
  - this part has it's own issues...for now I think we might be fine if we 
would ensure that AND/OR operands are free of duplicates (I think that would 
not have any correctness issue).




> RelBuilder simplifies a filter with duplicate conjunction to empty
> ------------------------------------------------------------------
>
>                 Key: CALCITE-2730
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2730
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: next
>            Reporter: Stamatis Zampetakis
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.18.0
>
>
> Regression from 1.17. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to