[ https://issues.apache.org/jira/browse/SPARK-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matei Zaharia resolved SPARK-3010. ---------------------------------- Resolution: Fixed Fix Version/s: (was: 1.1.0) 1.2.0 Target Version/s: 1.2.0 (was: 1.1.0) > 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 > Assignee: wangfei > Fix For: 1.2.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.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org