We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d9b77 commit cd4a091Copy full SHA for cd4a091
sql/core/src/test/scala/org/apache/spark/sql/test/SharedSQLContext.scala
@@ -17,11 +17,13 @@
17
18
package org.apache.spark.sql.test
19
20
+import java.io.File
21
+
22
import org.scalatest.BeforeAndAfterEach
23
24
import org.apache.spark.{DebugFilesystem, SparkConf}
25
import org.apache.spark.sql.{SparkSession, SQLContext}
-import org.apache.spark.sql.internal.SQLConf
26
+import org.apache.spark.util.Utils
27
28
29
/**
@@ -71,6 +73,7 @@ trait SharedSQLContext extends SQLTestUtils with BeforeAndAfterEach {
71
73
*/
72
74
protected override def afterAll(): Unit = {
75
super.afterAll()
76
+ Utils.deleteRecursively(new File(_spark.sessionState.conf.warehousePath))
77
if (_spark != null) {
78
_spark.stop()
79
_spark = null
0 commit comments