[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org