Skip to content

Commit

Permalink
mv getdatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
windpiger committed Mar 3, 2017
1 parent ae9938a commit 7739ccd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,13 @@ abstract class ExternalCatalog(conf: SparkConf, hadoopConf: Configuration) {
def alterDatabase(dbDefinition: CatalogDatabase): Unit

final def getDatabase(db: String): CatalogDatabase = {
val database = getDatabaseInternal(db)
// The default database's location always uses the warehouse path.
// Since the location of database stored in metastore is qualified,
// we also make the warehouse location qualified.
if (db == SessionCatalog.DEFAULT_DATABASE) {
defaultDB
} else {
database
getDatabaseInternal(db)
}
}

Expand Down

0 comments on commit 7739ccd

Please sign in to comment.