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

Simplify `CaseWhen` to `If` when there is only one branch

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 2.3.0
    • None
    • SQL
    • None

    Description

      After the rule of removing the unreachable branches, it could be only one branch left. In this situation, `CaseWhen` can be converted to `If` to do further optimization.

      Attachments

        Issue Links

          Activity

            People

              dbtsai DB Tsai
              dbtsai DB Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: