MinJi Kim created CALCITE-1289: ---------------------------------- Summary: RexUtil.simplifyCase() should account for nullability Key: CALCITE-1289 URL: https://issues.apache.org/jira/browse/CALCITE-1289 Project: Calcite Issue Type: Bug Components: core Reporter: MinJi Kim Assignee: Julian Hyde
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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)