Uh oh!
There was an error while loading. Please reload this page.
[SPARK-7970] Skip closure cleaning for SQL operations - #9253
[SPARK-7970] Skip closure cleaning for SQL operations#9253nitin2goyal wants to merge 11 commits into
Conversation
…'group by' attribute set
…'group by' attribute set
…'group by' attribute set
Push conjunctive predicates though Aggregate operators when their references are a subset of the groupingExpressions. Query plan before optimisation :- Filter ((c#138L = 2) && (a#0 = 3)) Aggregate [a#0], [a#0,count(b#1) AS c#138L] Project [a#0,b#1] LocalRelation [a#0,b#1,c#2] Query plan after optimisation :- Filter (c#138L = 2) Aggregate [a#0], [a#0,count(b#1) AS c#138L] Filter (a#0 = 3) Project [a#0,b#1] LocalRelation [a#0,b#1,c#2]
Push conjunctive predicates though Aggregate operators when their references are a subset of the groupingExpressions. Query plan before optimisation :- Filter ((c#138L = 2) && (a#0 = 3)) Aggregate [a#0], [a#0,count(b#1) AS c#138L] Project [a#0,b#1] LocalRelation [a#0,b#1,c#2] Query plan after optimisation :- Filter (c#138L = 2) Aggregate [a#0], [a#0,count(b#1) AS c#138L] Filter (a#0 = 3) Project [a#0,b#1] LocalRelation [a#0,b#1,c#2]
Also introduces new spark private API in RDD.scala with name 'mapPartitionsInternal' which doesn't closure cleans the RDD elements.
nitin2goyal
commented
Oct 23, 2015
cc @andrewor14 |
andrewor14
commented
Oct 23, 2015
ok to test |
SparkQA
commented
Oct 23, 2015
Test build #44238 has finished for PR 9253 at commit
|
SparkQA
commented
Oct 24, 2015
Test build #44284 has finished for PR 9253 at commit
|
nitin2goyal
commented
Oct 26, 2015
@andrewor14 - not sure which test has failed. can we retest this please? |
andrewor14
commented
Oct 29, 2015
retest this please |
andrewor14
commented
Oct 29, 2015
Looks great! I look forward to getting this merged. Once you address the comments I will do so. |
SparkQA
commented
Oct 29, 2015
Test build #44592 has finished for PR 9253 at commit
|
SparkQA
commented
Oct 29, 2015
Test build #44609 has finished for PR 9253 at commit
|
nitin2goyal
commented
Oct 30, 2015
Thanks fore reviewing Andrew ( @andrewor14 ). Have addressed your comments. Let me know if it looks good. |
andrewor14
commented
Nov 10, 2015
@nitin2goyal Sorry for the delay. This LGTM. I will merge it once you rebase to master again. |
Conflicts: sql/core/src/main/scala/org/apache/spark/sql/execution/Aggregate.scala sql/core/src/main/scala/org/apache/spark/sql/execution/basicOperators.scala
SparkQA
commented
Nov 13, 2015
Test build #45870 has finished for PR 9253 at commit
|
andrewor14
commented
Nov 13, 2015
retest this please |
SparkQA
commented
Nov 14, 2015
Test build #45895 has finished for PR 9253 at commit
|
Also introduces new spark private API in RDD.scala with name 'mapPartitionsInternal' which doesn't closure cleans the RDD elements. Author: nitin goyal <nitin.goyal@guavus.com> Author: nitin.goyal <nitin.goyal@guavus.com> Closes#9253 from nitin2goyal/master. (cherry picked from commit c939c70) Signed-off-by: Andrew Or <andrew@databricks.com>
tedyu
commented
Nov 15, 2015
Should mapPartitions() be replaced with mapPartitionsInternal() in the following classes ? If so, allow me to open a PR |
Also introduces new spark private API in RDD.scala with name 'mapPartitionsInternal' which doesn't closure cleans the RDD elements.