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

Constant folding in binaryComparison

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • SQL
    • None

    Description

      When we are comparing a int column with long literal, a < Int.MaxValue.toLong + 1L as a example, the analyzed plan would be LessThan(Cast(a, LongType), Literal).
      The result of predicate is determined and we could fold this at optimization phase.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yijieshen Yijie Shen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: