You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Tejas Patil (JIRA)" <ji...@apache.org> on 2017/05/16 03:10:04 UTC

[jira] [Created] (SPARK-20758) Add Constant propagation optimization

Tejas Patil created SPARK-20758:
-----------------------------------

             Summary: Add Constant propagation optimization
                 Key: SPARK-20758
                 URL: https://issues.apache.org/jira/browse/SPARK-20758
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.1.1
            Reporter: Tejas Patil
            Priority: Minor


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

eg.
{noformat}
SELECT * FROM table WHERE i = 5 AND j = i + 3
{noformat}

can be re-written as:
{noformat}
SELECT * FROM table WHERE i = 5 AND j = 8
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org