File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -48,22 +48,6 @@ class HiveUtilsSuite extends QueryTest with SQLTestUtils with TestHiveSingleton
4848 }
4949 }
5050
51- test(" ChildFirstURLClassLoader's parent is null" ) {
52- val conf = new SparkConf
53- val contextClassLoader = Thread .currentThread().getContextClassLoader
54- val loader = new FakeChildFirstURLClassLoader (Array (), contextClassLoader)
55- try {
56- Thread .currentThread().setContextClassLoader(loader)
57- intercept[IllegalArgumentException ](
58- HiveUtils .newClientForMetadata(
59- conf,
60- SparkHadoopUtil .newConfiguration(conf),
61- HiveUtils .newTemporaryConfiguration(useInMemoryDerby = true )))
62- } finally {
63- Thread .currentThread().setContextClassLoader(contextClassLoader)
64- }
65- }
66-
6751 test(" ChildFirstURLClassLoader's parent is null, get spark classloader instead" ) {
6852 val conf = new SparkConf
6953 val contextClassLoader = Thread .currentThread().getContextClassLoader
@@ -79,9 +63,3 @@ class HiveUtilsSuite extends QueryTest with SQLTestUtils with TestHiveSingleton
7963 }
8064 }
8165}
82-
83- /**
84- * A Fake [[ChildFirstURLClassLoader ]] used for test
85- */
86- private [spark] class FakeChildFirstURLClassLoader (urls : Array [URL ], parent : ClassLoader )
87- extends MutableURLClassLoader (urls, null )
You can’t perform that action at this time.
0 commit comments