Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-3010

fix redundant conditional

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.0.2
    • 1.2.0
    • Spark Core
    • None

    Description

      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

      Attachments

        Activity

          People

            scwf Fei Wang
            scwf Fei Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: