Skip to content

Commit

Permalink
[SPARK-23826][TEST] TestHiveSparkSession should set default session
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?
In TestHive, the base spark session does this in getOrCreate(), we emulate that behavior for tests.

## How was this patch tested?
N/A

Author: gatorsmile <[email protected]>

Closes apache#20969 from gatorsmile/setDefault.
  • Loading branch information
gatorsmile authored and Robert Kruszewski committed Apr 4, 2018
1 parent 150b653 commit d22e12e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,6 @@ private[hive] class TestHiveSparkSession(
private val loadTestTables: Boolean)
extends SparkSession(sc) with Logging { self =>

// TODO(SPARK-23826): TestHiveSparkSession should set default session the same way as
// TestSparkSession, but doing this the same way breaks many tests in the package. We need
// to investigate and find a different strategy.

def this(sc: SparkContext, loadTestTables: Boolean) {
this(
sc,
Expand Down

0 comments on commit d22e12e

Please sign in to comment.