Skip to content

Commit e0e38bf

Browse files
authored
Update DatasetSuite.scala
1 parent ffe4318 commit e0e38bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/DatasetSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,8 @@ class DatasetSuite extends QueryTest with SharedSQLContext {
933933
spark.sparkContext.setCheckpointDir(dir.getCanonicalPath)
934934
f
935935
} finally {
936+
// Since the original checkpointDir can be None, we need
937+
// to set the variable directly.
936938
spark.sparkContext.checkpointDir = originalCheckpointDir
937939
}
938940
}

0 commit comments

Comments
 (0)