You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/07/23 17:34:00 UTC
[jira] [Commented] (SPARK-24890) Short circuiting the `if`
condition when `trueValue` and `falseValue` are the same
[ https://issues.apache.org/jira/browse/SPARK-24890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16553151#comment-16553151 ]
Apache Spark commented on SPARK-24890:
--------------------------------------
User 'dbtsai' has created a pull request for this issue:
https://github.com/apache/spark/pull/21848
> Short circuiting the `if` condition when `trueValue` and `falseValue` are the same
> ----------------------------------------------------------------------------------
>
> Key: SPARK-24890
> URL: https://issues.apache.org/jira/browse/SPARK-24890
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.3.0
> Reporter: DB Tsai
> Priority: Major
>
> When `trueValue` and `falseValue` are semantic equivalence, the condition expression in `if` can be removed to avoid extra computation in runtime.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org