[jira] [Assigned] (SPARK-23356) Pushes Project to both sides of Union when expression is non-deterministic

2018-11-27 Thread Wenchen Fan (JIRA)


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

Wenchen Fan reassigned SPARK-23356:
---

Assignee: caoxuewen

> Pushes Project to both sides of Union when expression is non-deterministic
> --
>
> Key: SPARK-23356
> URL: https://issues.apache.org/jira/browse/SPARK-23356
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 2.4.0
>Reporter: caoxuewen
>Assignee: caoxuewen
>Priority: Major
>
> Currently, PushProjectionThroughUnion optimizer only supports pushdown 
> project operator to both sides of a Union operator when expression is 
> deterministic , in fact, we can be like pushdown filters, also support 
> pushdown project operator to both sides of a Union operator when expression 
> is non-deterministic , this PR description fix this problem。now the explain 
> looks like:
> === Applying Rule 
> org.apache.spark.sql.catalyst.optimizer.PushProjectionThroughUnion ===
> Input LogicalPlan:
> Project [a#0, rand(10) AS rnd#9]
> +- Union
>  :- LocalRelation , [a#0, b#1, c#2]
>  :- LocalRelation , [d#3, e#4, f#5]
>  +- LocalRelation , [g#6, h#7, i#8]
> Output LogicalPlan:
> Project [a#0, rand(10) AS rnd#9]
> +- Union
>  :- Project [a#0]
>  : +- LocalRelation , [a#0, b#1, c#2]
>  :- Project [d#3]
>  : +- LocalRelation , [d#3, e#4, f#5]
>  +- Project [g#6]
>  +- LocalRelation , [g#6, h#7, i#8]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Assigned] (SPARK-23356) Pushes Project to both sides of Union when expression is non-deterministic

2018-02-08 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-23356:


Assignee: Apache Spark

> Pushes Project to both sides of Union when expression is non-deterministic
> --
>
> Key: SPARK-23356
> URL: https://issues.apache.org/jira/browse/SPARK-23356
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 2.4.0
>Reporter: caoxuewen
>Assignee: Apache Spark
>Priority: Major
>
> Currently, PushProjectionThroughUnion optimizer only supports pushdown 
> project operator to both sides of a Union operator when expression is 
> deterministic , in fact, we can be like pushdown filters, also support 
> pushdown project operator to both sides of a Union operator when expression 
> is non-deterministic , this PR description fix this problem。now the explain 
> looks like:
> === Applying Rule 
> org.apache.spark.sql.catalyst.optimizer.PushProjectionThroughUnion ===
> Input LogicalPlan:
> Project [a#0, rand(10) AS rnd#9]
> +- Union
>  :- LocalRelation , [a#0, b#1, c#2]
>  :- LocalRelation , [d#3, e#4, f#5]
>  +- LocalRelation , [g#6, h#7, i#8]
> Output LogicalPlan:
> Project [a#0, rand(10) AS rnd#9]
> +- Union
>  :- Project [a#0]
>  : +- LocalRelation , [a#0, b#1, c#2]
>  :- Project [d#3]
>  : +- LocalRelation , [d#3, e#4, f#5]
>  +- Project [g#6]
>  +- LocalRelation , [g#6, h#7, i#8]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Assigned] (SPARK-23356) Pushes Project to both sides of Union when expression is non-deterministic

2018-02-08 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-23356:


Assignee: (was: Apache Spark)

> Pushes Project to both sides of Union when expression is non-deterministic
> --
>
> Key: SPARK-23356
> URL: https://issues.apache.org/jira/browse/SPARK-23356
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 2.4.0
>Reporter: caoxuewen
>Priority: Major
>
> Currently, PushProjectionThroughUnion optimizer only supports pushdown 
> project operator to both sides of a Union operator when expression is 
> deterministic , in fact, we can be like pushdown filters, also support 
> pushdown project operator to both sides of a Union operator when expression 
> is non-deterministic , this PR description fix this problem。now the explain 
> looks like:
> === Applying Rule 
> org.apache.spark.sql.catalyst.optimizer.PushProjectionThroughUnion ===
> Input LogicalPlan:
> Project [a#0, rand(10) AS rnd#9]
> +- Union
>  :- LocalRelation , [a#0, b#1, c#2]
>  :- LocalRelation , [d#3, e#4, f#5]
>  +- LocalRelation , [g#6, h#7, i#8]
> Output LogicalPlan:
> Project [a#0, rand(10) AS rnd#9]
> +- Union
>  :- Project [a#0]
>  : +- LocalRelation , [a#0, b#1, c#2]
>  :- Project [d#3]
>  : +- LocalRelation , [d#3, e#4, f#5]
>  +- Project [g#6]
>  +- LocalRelation , [g#6, h#7, i#8]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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