Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2494

RexFieldAccess should implement equals/hashCode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.17.0
    • Fix Version/s: 1.18.0
    • Component/s: core
    • Labels:
      None

      Description

      simplify(or(vBool(), vBool())) produces exception which means RexSimplify tried to assign different values to the instances of ?0.bool0

      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)

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              vladimirsitnikov Vladimir Sitnikov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: