You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/12/27 13:49:03 UTC
[GitHub] [spark] HeartSaVioR commented on a change in pull request #27025:
[SPARK-26560][SQL] Spark should be able to run Hive UDF using jar
regardless of current thread context classloader
HeartSaVioR commented on a change in pull request #27025: [SPARK-26560][SQL] Spark should be able to run Hive UDF using jar regardless of current thread context classloader
URL: https://github.com/apache/spark/pull/27025#discussion_r361667169
##########
File path: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala
##########
@@ -70,6 +70,17 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
import hiveContext._
import spark.implicits._
+ private var threadContextClassLoader: ClassLoader = _
+
+ override protected def beforeEach(): Unit = {
Review comment:
This is needed to make a new UT pass, as some tests change the current thread's context classloader to jar classloader.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org