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 2016/11/28 07:30:58 UTC

[jira] [Resolved] (SPARK-18585) Use `ev.isNull = "false"` if possible for Janino to have a chance to optimize.

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

Reynold Xin resolved SPARK-18585.
---------------------------------
       Resolution: Fixed
         Assignee: Takuya Ueshin
    Fix Version/s: 2.1.0

> Use `ev.isNull = "false"` if possible for Janino to have a chance to optimize.
> ------------------------------------------------------------------------------
>
>                 Key: SPARK-18585
>                 URL: https://issues.apache.org/jira/browse/SPARK-18585
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Takuya Ueshin
>            Assignee: Takuya Ueshin
>             Fix For: 2.1.0
>
>
> Janino can optimize {{true ? a : b}} into {{a}} or {{false ? a : b}} into {{b}}, or if/else with literal condition, so we should use literal as {{ev.isNull}} if possible.



--
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