You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (JIRA)" <ji...@apache.org> on 2018/08/28 09:31:00 UTC

[jira] [Updated] (CALCITE-2494) RexFieldAccess should implement equals/hashCode

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

Vladimir Sitnikov updated CALCITE-2494:
---------------------------------------
    Description: 
{{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}

  was:
{{simplify(or(vBool(), vBool()))}} produces 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}


> 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
>
> {{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)