Skip to content

Commit

Permalink
comment for eliminate subqueries.
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Jan 5, 2014
1 parent d72a5a2 commit 61b266f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/scala/catalyst/optimizer/Optimizer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ object Optimize extends RuleExecutor[LogicalPlan] {

}

/**
* Removes subqueries from the plan. Subqueries are only required to provide scoping information
* for attributes and can be removed once analysis is complete.
*/
object EliminateSubqueries extends Rule[LogicalPlan] {
def apply(plan: LogicalPlan): LogicalPlan = plan transform {
case Subquery(_, child) => child
Expand Down

0 comments on commit 61b266f

Please sign in to comment.