Skip to content

Commit bc8f2be

Browse files
committed
removing withTempDir
1 parent 9218669 commit bc8f2be

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/OrcPartitionDiscoverySuite.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ case class OrcParDataWithKey(intField: Int, pi: Int, stringField: String, ps: St
4141
class OrcPartitionDiscoverySuite extends QueryTest with BeforeAndAfterAll {
4242
val defaultPartitionName = ConfVars.DEFAULTPARTITIONNAME.defaultStrVal
4343

44-
def withTempDir(f: File => Unit): Unit = {
45-
val dir = Utils.createTempDir().getCanonicalFile
46-
try f(dir) finally Utils.deleteRecursively(dir)
47-
}
48-
4944
def makeOrcFile[T <: Product: ClassTag: TypeTag](
5045
data: Seq[T], path: File): Unit = {
5146
data.toDF().write.mode("overwrite").orc(path.getCanonicalPath)

0 commit comments

Comments
 (0)