cloud-fan commented on a change in pull request #32361:
URL: https://github.com/apache/spark/pull/32361#discussion_r622832750



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/ResolveWriteToStream.scala
##########
@@ -139,8 +139,8 @@ object ResolveWriteToStream extends Rule[LogicalPlan] with 
SQLConfHelper {
               .stripMargin)
         }
       }
-      val checkpointDir = checkpointPath.makeQualified(fs.getUri, 
fs.getWorkingDirectory)
-      fs.mkdirs(checkpointDir)
+      val checkpointDir = fileManager.getQualifiedCheckpointPath()
+      fileManager.mkdirs(checkpointDir)

Review comment:
       For this particular case, the API we need is 
`createCheckpointDirectory`. But I feel it's also good to expose the qualified 
checkpoint path with an API.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to