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

Add Constant propagation optimization

    Details

    • Type: New JIRA Project
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Constant propagation involves substituting attributes which can be statically evaluated in expressions. Its a pretty common optimization in compilers world.

      eg.

      SELECT * FROM table WHERE i = 5 AND j = i + 3
      

      can be re-written as:

      SELECT * FROM table WHERE i = 5 AND j = 8
      

        Attachments

          Activity

            People

            • Assignee:
              tejasp Tejas Patil
              Reporter:
              tejasp Tejas Patil
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: