senthh commented on a change in pull request #33577:
URL: https://github.com/apache/spark/pull/33577#discussion_r679076040
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/SaveAsHiveFile.scala
##########
@@ -188,7 +188,7 @@ private[hive] trait SaveAsHiveFile extends
DataWritingCommand {
stagingDir: String): Path = {
val extURI: URI = path.toUri
if (extURI.getScheme == "viewfs") {
- getExtTmpPathRelTo(path.getParent, hadoopConf, stagingDir)
Review comment:
In hive, "/db/table/tmp" directory structure is passed for path and
hence path.getParent returns "db/table/" . But in Spark we just pass
"/db/table" so it is not required to use "path.getParent" for hadoop
federation(viewfs)
--
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]