You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2014/06/20 09:01:30 UTC

[jira] [Resolved] (SPARK-2209) Cast shouldn't do null check twice

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

Reynold Xin resolved SPARK-2209.
--------------------------------

    Resolution: Fixed

> Cast shouldn't do null check twice
> ----------------------------------
>
>                 Key: SPARK-2209
>                 URL: https://issues.apache.org/jira/browse/SPARK-2209
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.0.0
>            Reporter: Reynold Xin
>            Assignee: Reynold Xin
>             Fix For: 1.0.1, 1.1.0
>
>
> Cast does two null checks, one in eval and another one in the function returned by nullOrCast. It's best to get rid of the one in nullOrCast (since eval will be the more common code path).



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