Skip to content

Commit

Permalink
Fix constructor default args for bytecode compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalkhamar committed Feb 6, 2017
1 parent 9beb78d commit a343d8a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,15 @@ import org.apache.spark.util.Utils
class SparkSession private(
@transient val sparkContext: SparkContext,
@transient private val existingSharedState: Option[SharedState],
existingSessionState: Option[SessionState] = None)
existingSessionState: Option[SessionState])
extends Serializable with Closeable with Logging { self =>

private[sql] def this(sc: SparkContext, existingSharedState: Option[SharedState]) {
this(sc, existingSharedState, None)
}

private[sql] def this(sc: SparkContext) {
this(sc, None)
this(sc, None, None)
}

sparkContext.assertNotStopped()
Expand Down

0 comments on commit a343d8a

Please sign in to comment.