wForget commented on code in PR #7626:
URL: https://github.com/apache/kyuubi/pull/7626#discussion_r3763958988
##########
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/SparkSQLEngine.scala:
##########
@@ -91,9 +91,13 @@ case class SparkSQLEngine(spark: SparkSession) extends
Serverable("SparkSQLEngin
}
if
(backendService.sessionManager.getConf.get(OPERATION_RESULT_SAVE_TO_FILE)) {
- val fs =
engineSavePath.getFileSystem(spark.sparkContext.hadoopConfiguration)
- fs.mkdirs(engineSavePath)
- fs.deleteOnExit(engineSavePath)
+ engineSavePath = Some(backendService.sessionManager
+ .asInstanceOf[SparkSQLSessionManager].getEngineResultSavePath())
Review Comment:
It seems possible, but we're only creating the directory here. Should we
allow this feature to be enabled at the session level?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]