Skip to content

Commit 748821c

Browse files
committed
rm one ut
1 parent eff569b commit 748821c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSharedStateSuite.scala

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,12 @@ package org.apache.spark.sql.hive
2020
import org.apache.hadoop.hive.conf.HiveConf.ConfVars
2121

2222
import org.apache.spark.{SparkConf, SparkContext, SparkFunSuite}
23-
import org.apache.spark.sql.SparkSession
2423
import org.apache.spark.sql.internal.SharedState
2524
import org.apache.spark.sql.internal.StaticSQLConf._
2625
import org.apache.spark.util.Utils
2726

2827
class 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)

0 commit comments

Comments
 (0)