Uh oh!
There was an error while loading. Please reload this page.
[SPARK-17031][SQL] Add Scanner operator to wrap the optimized plan directly in planner - #14619
[SPARK-17031][SQL] Add Scanner operator to wrap the optimized plan directly in planner#14619jiangxb1987 wants to merge 21 commits into
Scanner operator to wrap the optimized plan directly in planner#14619Conversation
SparkQA
commented
Aug 12, 2016
Test build #63679 has finished for PR 14619 at commit
|
hvanhovell
commented
Aug 12, 2016
Could you elaborate on what you are trying to do here? I am missing context here. What is the advantage of doing this? |
jiangxb1987
commented
Aug 12, 2016
@hvanhovell This idea is inspired by @cloud-fan, as he stated in comment, we'd better have a wrapper node for scan, so that the planner may match the wrapper node directly instead of resolving the whole plan using |
SparkQA
commented
Aug 12, 2016
Test build #63696 has finished for PR 14619 at commit
|
rxin
commented
Aug 12, 2016
I'm pretty confused by this as well. Is this just collapsing Filter, Project, and an arbitrary node into a single logical node? |
cloud-fan
commented
Aug 13, 2016
see discussion here: #13893 (comment) Currently we collect the projects and filters on scan node at planner by |
There was a problem hiding this comment.
This doesn't reuse the existing ColumnPruning and PushDownPredicate rules. I'd like to add the wrapper at the very beginning, e.g. SessionCatalog.lookUpRelation.
There was a problem hiding this comment.
Roger that, will change it and retest.
SparkQA
commented
Aug 27, 2016
Test build #64533 has finished for PR 14619 at commit
|
SparkQA
commented
Aug 28, 2016
Test build #64544 has finished for PR 14619 at commit
|
@cloud-fan I've moved the Firstly, scan a relation is not among basic operators in SQL language, when we declare a relation, we imply it should be scanned, so It seems semantically duplicate to declare a Secondly, a wrapper node should contain the output, predicates that can be used in partition pruning, and a relation to be scanned. But this may cause complex situation in some cases, for example, in At last, I feel adding such a operator have caused too many changes, perhaps we should make some improvement on After all, I'm passionate to this improvement and will try my best to contribute, please correct me if I'm wrong, thank you! |
SparkQA
commented
Sep 7, 2016
Test build #65033 has finished for PR 14619 at commit
|
SparkQA
commented
Sep 7, 2016
Test build #65044 has finished for PR 14619 at commit
|
What changes were proposed in this pull request?
Added
Scanneroperator to wrap the optimized plan directly in planner, it holds project lists as well as filter predicates.Updated relative
AnalyzerandOptimizerrules.How was this patch tested?
Existing testcases.