Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/20922#discussion_r177863902 --- Diff: sql/core/src/test/scala/org/apache/spark/sql/test/SQLTestUtils.scala --- @@ -64,6 +64,7 @@ private[sql] trait SQLTestUtils extends SparkFunSuite with SQLTestUtilsBase with if (loadTestDataBeforeTests) { loadTestData() } + SparkSession.setActiveSession(spark) --- End diff -- The active session should be set before we execute the plan, right? For example, in QueryExecution for each query. What is the reason we need to do it here?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org