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

Julian Hyde resolved CALCITE-2604.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.18.0

Fixed in 
[6b3844c0|http://git-wip-us.apache.org/repos/asf/calcite/commit/6b3844c0].

> When simplifying an expression, say whether an UNKNOWN value will be 
> interpreted as is, or as TRUE or FALSE
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-2604
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2604
>             Project: Calcite
>          Issue Type: Task
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.18.0
>
>
> When simplifying an expression, say whether an UNKNOWN value will be 
> interpreted as is, or as true or false. Concretely, this means adding an 
> {{enum RexUnknownAs}} with values {{TRUE}}, {{FALSE}}, {{UNKNOWN}}, and 
> adding it as an argument to {{RexSimplify.simplify}} and similar methods.
> Currently {{RexSimplify}} has a constant field {{boolean unknownAs}} but this 
> is a mistake: the handling of unknown must change as you recurse into the 
> tree. For example, if an {{UNKNOWN}} result of {{NOT x}} is interpreted as 
> {{FALSE}}, then an {{UNKNOWN}} result of {{x}} must be interpreted as 
> {{TRUE}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to