Skip to content

Commit

Permalink
[SPARK-19355][SQL][FOLLOWUP][TEST] Properly recycle SparkSession on T…
Browse files Browse the repository at this point in the history
…akeOrderedAndProjectSuite finishes

## What changes were proposed in this pull request?

Previously in `TakeOrderedAndProjectSuite` the SparkSession will not get recycled when the test suite finishes.

## How was this patch tested?

N/A

Closes #22330 from jiangxb1987/SPARK-19355.

Authored-by: Xingbo Jiang <xingbo.jiang@databricks.com>
Signed-off-by: Xiao Li <gatorsmile@gmail.com>
  • Loading branch information
jiangxb1987 authored and gatorsmile committed Sep 4, 2018
1 parent 0b9b6b7 commit 3aa6028
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -45,6 +45,7 @@ class TakeOrderedAndProjectSuite extends SparkPlanTest with SharedSQLContext {

protected override def afterAll() = {
SQLConf.get.setConf(SQLConf.LIMIT_FLAT_GLOBAL_LIMIT, originalLimitFlatGlobalLimit)
super.afterAll()
}

private def generateRandomInputData(): DataFrame = {
Expand Down

0 comments on commit 3aa6028

Please sign in to comment.