spark-instrumented-optimizer/sql/hive
Wenchen Fan 7a75ee1c92 [SPARK-18921][SQL] check database existence with Hive.databaseExists instead of getDatabase
## What changes were proposed in this pull request?

It's weird that we use `Hive.getDatabase` to check the existence of a database, while Hive has a `databaseExists` interface.

What's worse, `Hive.getDatabase` will produce an error message if the database doesn't exist, which is annoying when we only want to check the database existence.

This PR fixes this and use `Hive.databaseExists` to check database existence.

## How was this patch tested?

N/A

Author: Wenchen Fan <wenchen@databricks.com>

Closes #16332 from cloud-fan/minor.
2016-12-19 11:42:59 -08:00
..
compatibility/src/test/scala/org/apache/spark/sql/hive/execution [SPARK-16904][SQL] Removal of Hive Built-in Hash Functions and TestHiveFunctionRegistry 2016-11-07 01:16:37 -08:00
src [SPARK-18921][SQL] check database existence with Hive.databaseExists instead of getDatabase 2016-12-19 11:42:59 -08:00
pom.xml [SPARK-18695] Bump master branch version to 2.2.0-SNAPSHOT 2016-12-02 21:09:37 -08:00