Skip to content

Commit cc7a3f8

Browse files
committed
Fix the logic about creating name of temporary checkpoint directory
1 parent dd9049e commit cc7a3f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/streaming/StreamingQueryManager.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class StreamingQueryManager private[sql] (sparkSession: SparkSession) {
206206
if (useTempCheckpointLocation) {
207207
// Delete the temp checkpoint when a query is being stopped without errors.
208208
deleteCheckpointOnStop = true
209-
Utils.createTempDir(namePrefix = s"temporary").getCanonicalPath
209+
Utils.createTempDir(namePrefix = s"temporary").getCanonicalFile.toURI.toString
210210
} else {
211211
throw new AnalysisException(
212212
"checkpointLocation must be specified either " +

0 commit comments

Comments
 (0)