File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -20,25 +20,12 @@ package org.apache.spark.sql.hive
2020import org .apache .hadoop .hive .conf .HiveConf .ConfVars
2121
2222import org .apache .spark .{SparkConf , SparkContext , SparkFunSuite }
23- import org .apache .spark .sql .SparkSession
2423import org .apache .spark .sql .internal .SharedState
2524import org .apache .spark .sql .internal .StaticSQLConf ._
2625import org .apache .spark .util .Utils
2726
2827class HiveSharedStateSuite extends SparkFunSuite {
2928
30- test(" enableHiveSupport has right to determine the catalog while using an existing sc" ) {
31- val conf = new SparkConf ().setMaster(" local" ).setAppName(" SharedState Test" )
32- val sc = SparkContext .getOrCreate(conf)
33- val ss = SparkSession .builder().enableHiveSupport().getOrCreate()
34- assert(ss.sharedState.externalCatalog.unwrapped.isInstanceOf [HiveExternalCatalog ],
35- " The catalog should be hive " )
36-
37- val ss2 = SparkSession .builder().getOrCreate()
38- assert(ss2.sharedState.externalCatalog.unwrapped.isInstanceOf [HiveExternalCatalog ],
39- " The catalog should be shared across sessions" )
40- }
41-
4229 test(" initial configs should be passed to SharedState but not SparkContext" ) {
4330 val conf = new SparkConf ().setMaster(" local" ).setAppName(" SharedState Test" )
4431 val sc = SparkContext .getOrCreate(conf)
You can’t perform that action at this time.
0 commit comments