GitHub user scwf opened a pull request:

    https://github.com/apache/spark/pull/1992

    [SPARK-3010] fix redundant conditional

    https://issues.apache.org/jira/browse/SPARK-3010
    
    this pr is to fix 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
    ...


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/scwf/spark condition

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/1992.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1992
    
----
commit d032bf930be1816694073f7d45ea92c53813c280
Author: wangfei <[email protected]>
Date:   2014-08-13T14:06:07Z

    [SQL]Excess judgment

commit e274515642e7a0063bebf315463cce0e0b702762
Author: scwf <[email protected]>
Date:   2014-08-13T14:43:58Z

    fix redundant conditions

commit 0824df48477af4d38802dac29103337ccd76b7ad
Author: scwf <[email protected]>
Date:   2014-08-14T14:11:15Z

    Merge branch 'master' of https://github.com/apache/spark into patch-4

commit 6811401409b7b2ea70f04db4f3dd4b4edaa266cf
Author: scwf <[email protected]>
Date:   2014-08-17T01:34:08Z

    fix merge confilct

commit e16239c23516b3432aa02850646bad8aa225f2a8
Author: scwf <[email protected]>
Date:   2014-08-17T01:36:01Z

    fix confilct

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to