diff options
author | Sandeep Singh <sandeep@techaddict.me> | 2016-05-05 14:35:15 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2016-05-05 14:35:15 -0700 |
commit | ed6f3f8a5f3a6bf7c53e13c2798de398c9a526a6 (patch) | |
tree | cac99af0f11f39aae44ab2dc10ee5d08a4cb25a6 /sql/hive | |
parent | 8cba57a75cf9e29b54d97366a039a97a2f305d5d (diff) | |
download | spark-ed6f3f8a5f3a6bf7c53e13c2798de398c9a526a6.tar.gz spark-ed6f3f8a5f3a6bf7c53e13c2798de398c9a526a6.tar.bz2 spark-ed6f3f8a5f3a6bf7c53e13c2798de398c9a526a6.zip |
[SPARK-15072][SQL][REPL][EXAMPLES] Remove SparkSession.withHiveSupport
## What changes were proposed in this pull request?
Removing the `withHiveSupport` method of `SparkSession`, instead use `enableHiveSupport`
## How was this patch tested?
ran tests locally
Author: Sandeep Singh <sandeep@techaddict.me>
Closes #12851 from techaddict/SPARK-15072.
Diffstat (limited to 'sql/hive')
-rw-r--r-- | sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala index 77a6a94a67..a320011799 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala @@ -290,8 +290,11 @@ object SetWarehouseLocationTest extends Logging { conf.set("spark.sql.warehouse.dir", warehouseLocation.toString) conf.set("hive.metastore.warehouse.dir", hiveWarehouseLocation.toString) - val sc = new SparkContext(conf) - val sparkSession = SparkSession.withHiveSupport(sc) + val sparkSession = SparkSession.builder + .config(conf) + .enableHiveSupport() + .getOrCreate() + val catalog = sparkSession.sessionState.catalog sparkSession.sql("drop table if exists testLocation") |