Skip to content

Commit

Permalink
Update FilterPushdownSuite.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pzzs committed Apr 30, 2015
1 parent 485c61c commit dc83ae9
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,23 @@ class FilterPushdownSuite extends PlanTest {

comparePlans(optimized, correctAnswer)
}

test("column pruning for Project(ne, Limit)") {
val originalQuery =
testRelation
.select('a,'b)
.limit(2)
.select('a)

val optimized = Optimize(originalQuery.analyze)
val correctAnswer =
testRelation
.select('a)
.limit(2).analyze

comparePlans(optimized, correctAnswer)
}

// After this line is unimplemented.
test("simple push down") {
val originalQuery =
Expand Down

0 comments on commit dc83ae9

Please sign in to comment.