[ 
https://issues.apache.org/jira/browse/CALCITE-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Hyde resolved CALCITE-1289.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.0

Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/94051eae. 
[~minjikim], thanks for the PR!

> 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
>             Fix For: 1.9.0
>
>
> 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).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to