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 2014/08/13 17:32:14 UTC
[jira] [Commented] (SPARK-3010) fix redundant conditional
[ https://issues.apache.org/jira/browse/SPARK-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14095587#comment-14095587 ]
Apache Spark commented on SPARK-3010:
-------------------------------------
User 'scwf' has created a pull request for this issue:
https://github.com/apache/spark/pull/1923
> fix redundant conditional
> -------------------------
>
> Key: SPARK-3010
> URL: https://issues.apache.org/jira/browse/SPARK-3010
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 1.0.2
> Reporter: wangfei
> Fix For: 1.1.0
>
>
> there are some redundant conditional in spark, such as
> 1.
> private[spark] def codegenEnabled: Boolean =
> if (getConf(CODEGEN_ENABLED, "false") == "true") true else false
> 2.
> x => if (x == 2) true else false
> ... etc
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org