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

RexSimplify: coalesce(unaryPlus(nullInt), unaryPlus(vInt())) results in AssertionError: result mismatch

    XMLWordPrintableJSON

Details

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

    Description

      coalesce(unaryPlus(nullInt), unaryPlus(vInt())) results in

      java.lang.AssertionError: result mismatch: when applied to {?0.int0=-1}, COALESCE(+(null), +(?0.int0)) yielded -1, and +(null) yielded NULL
      
      	at org.apache.calcite.rex.RexSimplify.verify(RexSimplify.java:1162)
      	at org.apache.calcite.rex.RexSimplify.simplify(RexSimplify.java:175)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: