[ 
https://issues.apache.org/jira/browse/CALCITE-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Sitnikov closed CALCITE-2494.
--------------------------------------
    Resolution: Fixed

Fixed in 
[6b2b9ffd7e620696e7e7cf34e38641d1817f0fd9|https://git-wip-us.apache.org/repos/asf?p=calcite.git;a=commit;h=6b2b9ffd7e620696e7e7cf34e38641d1817f0fd9]

> RexFieldAccess should implement equals/hashCode
> -----------------------------------------------
>
>                 Key: CALCITE-2494
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2494
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.17.0
>            Reporter: Vladimir Sitnikov
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.18.0
>
>
> {{simplify(or(vBool(), vBool()))}} produces exception which means RexSimplify 
> tried to assign different values to the instances of {{?0.bool0}}
> {noformat}
> java.lang.AssertionError: result mismatch: when applied to {?0.bool0=false, 
> ?0.bool0=true}, OR(?0.bool0, ?0.bool0) yielded true, and ?0.bool0 yielded 
> false
> at org.apache.calcite.rex.RexSimplify.verify(RexSimplify.java:1158)
> at org.apache.calcite.rex.RexSimplify.simplify(RexSimplify.java:175)
> at 
> org.apache.calcite.test.RexProgramTest.checkSimplify2(RexProgramTest.java:149)
> at 
> org.apache.calcite.test.RexProgramTest.testSimplifyAnd3DynamicParam(RexProgramTest.java:1573)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566){noformat}



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

Reply via email to