drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-1006) Fix case expression when conditions are nullable type.
Date Fri, 20 Jun 2014 20:28:34 GMT

    [ https://issues.apache.org/jira/browse/DRILL-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039309#comment-14039309
] 

Jacques Nadeau commented on DRILL-1006:
---------------------------------------

fixed in efa3274 or earlier

> Fix case expression when conditions are nullable type. 
> -------------------------------------------------------
>
>                 Key: DRILL-1006
>                 URL: https://issues.apache.org/jira/browse/DRILL-1006
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Jinfeng Ni
>
> There are two issues in case expressions:
> 1.  ExpressionValidator enforces that the conditions in a case expression have to be
non-nullable type.  This is not true ; a condition could be a nullable type from any expression
generating boolean value.
> 2. In EvaluationVisitor when we generate the run-time code,  the generated code for case
expression when the condition is nullable is not valid, causing compiler error.
>  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message