You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/05/22 12:09:17 UTC
[jira] [Commented] (SPARK-7824) Extracting and/or condition
optimizer from BooleanSimplification optimizer and put it before
PushPredicateThroughJoin optimizer to push down the single side.
[ https://issues.apache.org/jira/browse/SPARK-7824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14555924#comment-14555924 ]
Apache Spark commented on SPARK-7824:
-------------------------------------
User 'DoingDone9' has created a pull request for this issue:
https://github.com/apache/spark/pull/6351
> Extracting and/or condition optimizer from BooleanSimplification optimizer and put it before PushPredicateThroughJoin optimizer 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
>
> 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