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

Constant folding in binaryComparison

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment