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

RexSimplify: case with repeated branches results in assertion error

    XMLWordPrintableJSON

Details

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

    Description

              case_(
                  eq(falseLiteral, falseLiteral), falseLiteral,
                  eq(falseLiteral, falseLiteral), isNotNull(trueLiteral),
                  isNull(trueLiteral)
              );
      
      java.lang.AssertionError: result mismatch: when applied to {},
      CASE(=(false, false), false, =(false, false), IS NOT NULL(true), IS NULL(true)) yielded false,
      
      and =(false, false) yielded true

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: