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

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

    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:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: