yaooqinn commented on a change in pull request #28527:
URL: https://github.com/apache/spark/pull/28527#discussion_r426663676
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
##########
@@ -340,6 +348,16 @@ class SessionCatalog(
}
}
+ private def makeQualifiedTablePath(locationUri: URI, database: String): URI
= {
+ if (locationUri.isAbsolute) {
+ locationUri
+ } else {
+ val dbName = formatDatabaseName(database)
+ val dbLocation =
makeQualifiedDBPath(getDatabaseMetadata(dbName).locationUri)
Review comment:
No matter if it's custom or managed, we should inherit that location for
tables as same as we do for partitions
https://github.com/apache/spark/blob/a28ed86a387b286745b30cd4d90b3d558205a5a7/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala#L1161-L1164
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]