diff options
author | Wenchen Fan <cloud0fan@outlook.com> | 2015-05-14 10:25:18 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-05-14 10:25:18 -0700 |
commit | f2cd00be350fdba3acfbfdf155701182d1c404fd (patch) | |
tree | b25f5b8b7a63af97d32c9da65443584ed7ab8b22 /sql/catalyst | |
parent | 7fb715de6d90c3eb756935440f75b1de674f8ece (diff) | |
download | spark-f2cd00be350fdba3acfbfdf155701182d1c404fd.tar.gz spark-f2cd00be350fdba3acfbfdf155701182d1c404fd.tar.bz2 spark-f2cd00be350fdba3acfbfdf155701182d1c404fd.zip |
[SQL][minor] rename apply for QueryPlanner
A follow-up of https://github.com/apache/spark/pull/5624
Author: Wenchen Fan <cloud0fan@outlook.com>
Closes #6142 from cloud-fan/tmp and squashes the following commits:
971a92b [Wenchen Fan] use plan instead of execute
24c5ffe [Wenchen Fan] rename apply
Diffstat (limited to 'sql/catalyst')
-rw-r--r-- | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/QueryPlanner.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/QueryPlanner.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/QueryPlanner.scala index 51b5699aff..73a21884a4 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/QueryPlanner.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/QueryPlanner.scala @@ -51,9 +51,9 @@ abstract class QueryPlanner[PhysicalPlan <: TreeNode[PhysicalPlan]] { * filled in automatically by the QueryPlanner using the other execution strategies that are * available. */ - protected def planLater(plan: LogicalPlan) = apply(plan).next() + protected def planLater(plan: LogicalPlan) = this.plan(plan).next() - def apply(plan: LogicalPlan): Iterator[PhysicalPlan] = { + def plan(plan: LogicalPlan): Iterator[PhysicalPlan] = { // Obviously a lot to do here still... val iter = strategies.view.flatMap(_(plan)).toIterator assert(iter.hasNext, s"No plan for $plan") |