Skip to content

Commit

Permalink
Update Optimizer.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pzzs committed Apr 29, 2015
1 parent f03fe7f commit 485c61c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ object ColumnPruning extends Rule[LogicalPlan] {

Project(substitutedProjection, child)

case Project(projectList, Limit(exp, child)) =>
Limit(exp, Project(projectList, child))

// Eliminate no-op Projects
case Project(projectList, child) if child.output == projectList => child
}
Expand Down

0 comments on commit 485c61c

Please sign in to comment.