Skip to content

Commit

Permalink
Add parquetAfter() properly in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
concretevitamin committed Jul 29, 2014
1 parent dcff9bd commit de3ae13
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,28 @@ class EstimatesSuite extends QueryTest {
val testRDD = parquetFile(ParquetTestData.testDir.toString)
testRDD.registerAsTable("psrc")
}
def parquetAfter() = {
Utils.deleteRecursively(ParquetTestData.testDir)
reset()
}
mkTest(
parquetBefore, reset, parquetQuery, parquetAnswer, implicitly[ClassTag[ParquetRelation]])
parquetBefore,
parquetAfter,
parquetQuery,
parquetAnswer,
implicitly[ClassTag[ParquetRelation]]
)

/** Tests for MetastoreRelation */
val metastoreQuery = """SELECT * FROM src a JOIN src b ON a.key = 238 AND a.key = b.key"""
val metastoreAnswer = Seq.fill(4)((238, "val_238", 238, "val_238"))
mkTest(
() => (), () => (), metastoreQuery, metastoreAnswer, implicitly[ClassTag[MetastoreRelation]])
() => (),
() => (),
metastoreQuery,
metastoreAnswer,
implicitly[ClassTag[MetastoreRelation]]
)
}

}

0 comments on commit de3ae13

Please sign in to comment.