We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9beb78d commit a343d8aCopy full SHA for a343d8a
sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
@@ -73,11 +73,15 @@ import org.apache.spark.util.Utils
73
class SparkSession private(
74
@transient val sparkContext: SparkContext,
75
@transient private val existingSharedState: Option[SharedState],
76
- existingSessionState: Option[SessionState] = None)
+ existingSessionState: Option[SessionState])
77
extends Serializable with Closeable with Logging { self =>
78
79
+ private[sql] def this(sc: SparkContext, existingSharedState: Option[SharedState]) {
80
+ this(sc, existingSharedState, None)
81
+ }
82
+
83
private[sql] def this(sc: SparkContext) {
- this(sc, None)
84
+ this(sc, None, None)
85
}
86
87
sparkContext.assertNotStopped()
0 commit comments