Github user jose-torres commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20922#discussion_r177880353
  
    --- 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 --
    
    Discussed offline. What we should do instead is set the default session 
when the test spark session is initialized, since that initialization doesn't 
invoke SparkSession.getOrCreate() which normally sets it.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to