We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e380d2d commit 84a29e5Copy full SHA for 84a29e5
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala
@@ -140,7 +140,8 @@ private[hive] class HiveMetastoreCatalog(hive: HiveContext) extends Catalog with
140
}
141
142
def hiveDefaultTableFilePath(tableName: String): String = {
143
- hiveWarehouse.getTablePath(client.getDatabaseCurrent, tableName).toString
+ val currentDatabase = client.getDatabase(hive.sessionState.getCurrentDatabase())
144
+ hiveWarehouse.getTablePath(currentDatabase, tableName).toString
145
146
147
def tableExists(tableIdentifier: Seq[String]): Boolean = {
0 commit comments