You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2023/01/18 07:20:00 UTC

[GitHub] [kyuubi] turboFei commented on a diff in pull request #4144: [KYUUBI #4106] Introduce resource file uploading in batch creation via REST API

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-unsubscribe@kyuubi.apache.org

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


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