Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move inside right constructor
  • Loading branch information
jose-torres committed Mar 28, 2018
commit 2fec90b765d73d0bd8bf3501460f62b6a1cc6b4e
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ private[spark] class TestSparkSession(sc: SparkContext) extends SparkSession(sc)
def this(sparkConf: SparkConf) {
this(new SparkContext("local[2]", "test-sql-context",
sparkConf.set("spark.sql.testkey", "true")))
SparkSession.setDefaultSession(this)
}

def this() {
this(new SparkConf)
}

SparkSession.setDefaultSession(this)

@transient
override lazy val sessionState: SessionState = {
new TestSQLSessionStateBuilder(this, None).build()
Expand Down