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

RexUtil.simplifyCase() should account for nullability

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • core
    • None

    Description

      RexUtil.simplify() returns incorrect type information if the RexNode is a CASE(CONDITION, TRUE, FALSE). In this case, the CASE RexNode is a Boolean with isNullable == false. But, with the simplify, RexUtil.simplify returns CONDITION. When CONDITION has isNullable == true, the returned RexNode does not match the row type and fails to transform (vice versa).

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            minjikim MinJi Kim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: