File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1717
1818package org .apache .spark .sql .hive .execution
1919
20- import org .apache .spark .sql .hive .TestHive
2120import 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.
You can’t perform that action at this time.
0 commit comments