Skip to content

Commit

Permalink
Removes outdated test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Feb 25, 2016
1 parent 863c5ec commit 51ad500
Showing 1 changed file with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,38 +167,6 @@ class FilterPushdownSuite extends PlanTest {
comparePlans(optimized, originalQuery)
}

test("nondeterministic: push down part of filter through project") {
val originalQuery = testRelation
.select(Rand(10).as('rand), 'a)
.where('rand > 5 && 'a > 5)
.analyze

val optimized = Optimize.execute(originalQuery)

val correctAnswer = testRelation
.where('a > 5)
.select(Rand(10).as('rand), 'a)
.where('rand > 5)
.analyze

comparePlans(optimized, correctAnswer)
}

test("nondeterministic: push down filter through project") {
val originalQuery = testRelation
.select(Rand(10).as('rand), 'a)
.where('a > 5 && 'a < 10)
.analyze

val optimized = Optimize.execute(originalQuery)
val correctAnswer = testRelation
.where('a > 5 && 'a < 10)
.select(Rand(10).as('rand), 'a)
.analyze

comparePlans(optimized, correctAnswer)
}

test("filters: combines filters") {
val originalQuery = testRelation
.select('a)
Expand Down

0 comments on commit 51ad500

Please sign in to comment.