Github user LuciferYang commented on a diff in the pull request:
https://github.com/apache/spark/pull/22149#discussion_r235340787
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/ScriptTransformationSuite.scala
---
@@ -49,6 +52,23 @@ class ScriptTransformationSuite extends SparkPlanTest
with TestHiveSingleton {
outputSerdeClass = Some(classOf[LazySimpleSerDe].getCanonicalName)
)
+ private val uncaughtExceptionHandler = new TestUncaughtExceptionHandler
+
+ protected override def beforeAll(): Unit = {
+ super.beforeAll()
+ Thread.setDefaultUncaughtExceptionHandler(uncaughtExceptionHandler)
--- End diff --
ok~ `getDefaultUncaughtExceptionHandler` and store it at `beforeAll`
method, then restore use `defaultUncaughtExceptionHandler` at `afterAll` method
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]