You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/09/15 22:29:45 UTC

[jira] [Commented] (SPARK-10485) IF expression is not correctly resolved when one of the options have NullType

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

Michael Armbrust commented on SPARK-10485:
------------------------------------------

I think this is fixed in Spark 1.5?

> IF expression is not correctly resolved when one of the options have NullType
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-10485
>                 URL: https://issues.apache.org/jira/browse/SPARK-10485
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.4.1
>            Reporter: Antonio Jesus Navarro
>
> If we have this query:
> {code}
> SELECT IF(column > 1, 1, NULL) FROM T1
> {code}
> On Spark 1.4.1 we have this:
> {code}
> override lazy val resolved = childrenResolved && trueValue.dataType == falseValue.dataType
> {code}
> So if one of the types is NullType, the if expression is not resolved.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org