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

RexSimplify: isFalse(isNotDistinctFrom(vBool(0), vBool(1))) causes AssertionError: wrong operand count 1 for IS DISTINCT FROM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.17.0
    • 1.18.0
    • core

    Description

      simplify( isFalse(isNotDistinctFrom(vBool(0), vBool(1))) ) leads to

      java.lang.AssertionError: wrong operand count 1 for IS DISTINCT FROM
      
      	at org.apache.calcite.util.Litmus$1.fail(Litmus.java:31)
      	at org.apache.calcite.sql.SqlBinaryOperator.validRexOperands(SqlBinaryOperator.java:219)
      	at org.apache.calcite.rex.RexCall.<init>(RexCall.java:63)
      	at org.apache.calcite.rex.RexBuilder.makeCall(RexBuilder.java:242)
      	at org.apache.calcite.rex.RexSimplify.simplifyNot(RexSimplify.java:373)
      	at org.apache.calcite.rex.RexSimplify.simplify_(RexSimplify.java:185)
      	at org.apache.calcite.rex.RexSimplify.simplifyIs2(RexSimplify.java:468)
      	at org.apache.calcite.rex.RexSimplify.simplifyIs(RexSimplify.java:414)
      	at org.apache.calcite.rex.RexSimplify.simplify_(RexSimplify.java:202)
      	at org.apache.calcite.rex.RexSimplify.lambda$simplify$0(RexSimplify.java:175)
      	at org.apache.calcite.rex.RexSimplify.verify(RexSimplify.java:1121)
      	at org.apache.calcite.rex.RexSimplify.simplify(RexSimplify.java:175)

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            vladimirsitnikov Vladimir Sitnikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: