Skip to content

Commit f6df6a8

Browse files
committed
update
1 parent 530f719 commit f6df6a8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class SQLConfSuite extends QueryTest with SharedSparkSession {
283283
try {
284284
sparkContext.conf.set("spark.to.be.or.not.to.be", "my love")
285285
sparkContext.conf.set("spark.sql.with.or.without.you", "my love")
286-
val spark = new SparkSession(sparkContext, Map.empty)
286+
val spark = new SparkSession(sparkContext)
287287
assert(spark.conf.get("spark.to.be.or.not.to.be") == "my love")
288288
assert(spark.conf.get("spark.sql.with.or.without.you") == "my love")
289289
} finally {
@@ -303,7 +303,7 @@ class SQLConfSuite extends QueryTest with SharedSparkSession {
303303
val previousValue = sparkContext.conf.get(GLOBAL_TEMP_DATABASE)
304304
try {
305305
sparkContext.conf.set(GLOBAL_TEMP_DATABASE, "a")
306-
val newSession = new SparkSession(sparkContext, Map.empty)
306+
val newSession = new SparkSession(sparkContext)
307307
assert(newSession.conf.get(GLOBAL_TEMP_DATABASE) == "a")
308308
checkAnswer(
309309
newSession.sql(s"SET ${GLOBAL_TEMP_DATABASE.key}"),

sql/core/src/test/scala/org/apache/spark/sql/test/TestSQLContext.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ import org.apache.spark.sql.internal.{SessionState, SessionStateBuilder, SQLConf
2424
/**
2525
* A special `SparkSession` prepared for testing.
2626
*/
27-
private[spark] class TestSparkSession(sc: SparkContext)
28-
extends SparkSession(sc) { self =>
27+
private[spark] class TestSparkSession(sc: SparkContext) extends SparkSession(sc) { self =>
2928
def this(sparkConf: SparkConf) = {
3029
this(new SparkContext("local[2]", "test-sql-context",
3130
sparkConf.set("spark.sql.testkey", "true")))

0 commit comments

Comments
 (0)