[
https://issues.apache.org/jira/browse/CALCITE-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16715326#comment-16715326
]
Julian Hyde commented on CALCITE-2730:
--------------------------------------
I don't think we should use reference equality. I think we should replace based
on index.
Here is the rationale. Since RexNodes are immutable, we encourage people to
share them (i.e. use them multiple times in the same expression or plan). So
it's possible to get AND(e1, e2, e1) where e1 are literally the same object,
but we'd only like to remove the second occurrence of e1.
> 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)