camper42 commented on issue #6437:
URL: https://github.com/apache/kyuubi/issues/6437#issuecomment-2141617576

   @wForget  as I mentioned above, 
`getEngineResultSavePath/getSessionResultSavePath/getOperationResultSavePath` 
in `SparkSQLSessionManager` misuse `java.nio.file.Paths` to process 
`OPERATION_RESULT_SAVE_TO_FILE_DIR`
   
   
https://github.com/apache/kyuubi/blob/master/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/session/SparkSQLSessionManager.scala#L214-L226
   
   so, even if I configured our jfs correctly, `getEngineResultSavePath` return 
a wrong path.
   
   ```scala
   scala> import java.nio.file.Paths
   import java.nio.file.Paths
   
   scala> Paths.get("jfs://datalake/tmp", "test_engine_id").toString
   res0: String = jfs:/datalake/tmp/test_engine_id
   
   scala> Paths.get("hdfs://datalake/tmp", "test_engine_id").toString
   res1: String = hdfs:/datalake/tmp/test_engine_id
   ```
   
   
   


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

Reply via email to