Skip to content

Commit a343d8a

Browse files
committed
Fix constructor default args for bytecode compatibility.
1 parent 9beb78d commit a343d8a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,15 @@ import org.apache.spark.util.Utils
7373
class SparkSession private(
7474
@transient val sparkContext: SparkContext,
7575
@transient private val existingSharedState: Option[SharedState],
76-
existingSessionState: Option[SessionState] = None)
76+
existingSessionState: Option[SessionState])
7777
extends Serializable with Closeable with Logging { self =>
7878

79+
private[sql] def this(sc: SparkContext, existingSharedState: Option[SharedState]) {
80+
this(sc, existingSharedState, None)
81+
}
82+
7983
private[sql] def this(sc: SparkContext) {
80-
this(sc, None)
84+
this(sc, None, None)
8185
}
8286

8387
sparkContext.assertNotStopped()

0 commit comments

Comments
 (0)