cloud-fan opened a new pull request #25463: [SPARK-28744][SQL][TEST] rename 
SharedSQLContext to SharedSparkSession
   ## What changes were proposed in this pull request?
   The Spark SQL test framework needs to support 2 kinds of tests:
   1. tests inside Spark to test Spark itself (extends `SparkFunSuite`)
   2. test outside of Spark to test Spark applications (introduced at
   The class hierarchy of the major testing traits:
   `PlanTestBase`, `SQLTestUtilsBase` and `SharedSparkSession` intentionally 
don't extend `SparkFunSuite`, so that they can be used for tests outside of 
Spark. Tests in Spark should extends `QueryTest` and/or `SharedSQLContext` in 
most cases.
   However, the name is a little confusing. As a result, some test suites 
extend `SharedSparkSession` instead of `SharedSQLContext`. `SharedSparkSession` 
doesn't work well with `SparkFunSuite` as it doesn't have the special handling 
of thread auditing in `SharedSQLContext`.
   This PR proposes to rename `SharedSparkSession` to `SharedSparkSessionBase`, 
and rename `SharedSQLContext` to `SharedSparkSession`.
   ## How was this patch tested?
   (Please explain how this patch was tested. E.g. unit tests, integration 
tests, manual tests)
   (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
   Please review before opening a 
pull request.

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:

With regards,
Apache Git Services

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to