turboFei commented on code in PR #4144:
URL: https://github.com/apache/kyuubi/pull/4144#discussion_r1073168923


##########
kyuubi-common/src/main/scala/org/apache/kyuubi/Utils.scala:
##########
@@ -135,6 +135,19 @@ object Utils extends Logging {
     f.delete()
   }
 
+  /**
+   * Create a temporary file inside the given parent directory. The file will 
be
+   * automatically deleted when the VM shuts down.
+   */
+  def createTempFile(
+      dir: Path,
+      prefix: String,
+      suffix: String): File = {
+    val f = Files.createTempFile(dir, prefix, suffix).toFile
+    f.deleteOnExit()
+    f

Review Comment:
   seems this code is not used.



-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org

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


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

Reply via email to