Skip to content

Commit

Permalink
make temp dir more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Feb 15, 2024
1 parent 79ff354 commit 297d5cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spark/src/test/scala/org/apache/comet/CometCastSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ import org.apache.spark.sql.types.{DataType, DataTypes}
class CometCastSuite extends CometTestBase with AdaptiveSparkPlanHelper {
import testImplicits._

private val tempDir = Files.createTempDirectory("CometCastSuite")
private lazy val tempDir = {
val tmp = Files.createTempDirectory("CometCastSuite")
if (!tmp.toFile.exists()) {
assert(tmp.toFile.mkdirs())
}
tmp
}

ignore("cast long to short") {
castTest(generateLongs, DataTypes.ShortType)
Expand Down

0 comments on commit 297d5cf

Please sign in to comment.