You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/06/12 02:03:06 UTC

[jira] [Updated] (SPARK-7824) Collapsing operator reordering and constant folding into a single batch to push down the single side.

     [ https://issues.apache.org/jira/browse/SPARK-7824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Armbrust updated SPARK-7824:
------------------------------------
    Assignee: Zhongshuai Pei

> Collapsing operator reordering and constant folding into a single batch to push down the single side.
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-7824
>                 URL: https://issues.apache.org/jira/browse/SPARK-7824
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.3.1
>            Reporter: Zhongshuai Pei
>            Assignee: Zhongshuai Pei
>             Fix For: 1.5.0
>
>
> SQL:
> {noformat}
> select * from tableA join tableB on (a > 3 and b = d) or (a > 3 and b = e)
> {noformat}
> Plan before modify
> {noformat}
> == Optimized Logical Plan ==
> Project [a#293,b#294,c#295,d#296,e#297]
>  Join Inner, Some(((a#293 > 3) && ((b#294 = d#296) || (b#294 = e#297))))
>   MetastoreRelation default, tablea, None
>   MetastoreRelation default, tableb, None
> {noformat}
> Plan after modify
> {noformat}
> == Optimized Logical Plan ==
> Project [a#293,b#294,c#295,d#296,e#297]
>  Join Inner, Some(((b#294 = d#296) || (b#294 = e#297)))
>   Filter (a#293 > 3)
>    MetastoreRelation default, tablea, None
>   MetastoreRelation default, tableb, None
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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