Skip to content

Commit 6ad6d9b

Browse files
committed
Merged HiveCompatibilitySuite and HiveInMemoryCompatibilitySuite
1 parent 5bdbfe7 commit 6ad6d9b

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,26 @@
1717

1818
package org.apache.spark.sql.hive.execution
1919

20-
import org.apache.spark.sql.hive.TestHive
2120
import org.scalatest.BeforeAndAfter
2221

23-
class HiveInMemoryCompatibilitySuite extends HiveCompatibilitySuite with BeforeAndAfter {
24-
override def beforeAll() {
25-
TestHive.cacheTables = true
26-
}
27-
28-
override def afterAll() {
29-
TestHive.cacheTables = false
30-
}
31-
}
22+
import org.apache.spark.sql.hive.TestHive
3223

3324
/**
3425
* Runs the test cases that are included in the hive distribution.
3526
*/
36-
class HiveCompatibilitySuite extends HiveQueryFileTest {
27+
class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
3728
// TODO: bundle in jar files... get from classpath
3829
lazy val hiveQueryDir = TestHive.getHiveFile("ql/src/test/queries/clientpositive")
3930
def testCases = hiveQueryDir.listFiles.map(f => f.getName.stripSuffix(".q") -> f)
4031

32+
override def beforeAll() {
33+
TestHive.cacheTables = true
34+
}
35+
36+
override def afterAll() {
37+
TestHive.cacheTables = false
38+
}
39+
4140
/** A list of tests deemed out of scope currently and thus completely disregarded. */
4241
override def blackList = Seq(
4342
// These tests use hooks that are not on the classpath and thus break all subsequent execution.

0 commit comments

Comments
 (0)