Skip to content

Commit de3ae13

Browse files
Add parquetAfter() properly in test.
1 parent dcff9bd commit de3ae13

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/EstimatesSuite.scala

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,28 @@ class EstimatesSuite extends QueryTest {
100100
val testRDD = parquetFile(ParquetTestData.testDir.toString)
101101
testRDD.registerAsTable("psrc")
102102
}
103+
def parquetAfter() = {
104+
Utils.deleteRecursively(ParquetTestData.testDir)
105+
reset()
106+
}
103107
mkTest(
104-
parquetBefore, reset, parquetQuery, parquetAnswer, implicitly[ClassTag[ParquetRelation]])
108+
parquetBefore,
109+
parquetAfter,
110+
parquetQuery,
111+
parquetAnswer,
112+
implicitly[ClassTag[ParquetRelation]]
113+
)
105114

106115
/** Tests for MetastoreRelation */
107116
val metastoreQuery = """SELECT * FROM src a JOIN src b ON a.key = 238 AND a.key = b.key"""
108117
val metastoreAnswer = Seq.fill(4)((238, "val_238", 238, "val_238"))
109118
mkTest(
110-
() => (), () => (), metastoreQuery, metastoreAnswer, implicitly[ClassTag[MetastoreRelation]])
119+
() => (),
120+
() => (),
121+
metastoreQuery,
122+
metastoreAnswer,
123+
implicitly[ClassTag[MetastoreRelation]]
124+
)
111125
}
112126

113127
}

0 commit comments

Comments
 (0)