Github user yhuai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13310#discussion_r64675651
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala 
---
    @@ -103,7 +103,11 @@ class SparkSession private(
        * A wrapped version of this session in the form of a [[SQLContext]], 
for backward compatibility.
        */
       @transient
    -  private[sql] val sqlContext: SQLContext = new SQLContext(this)
    +  private[sql] val sqlContext: SQLContext = existingSharedState match {
    +    // If we have an existing SharedState, we should not create a root 
SQLContext at here.
    +    case Some(sharedState) => new SQLContext(this, false)
    +    case None => new SQLContext(this, true)
    --- End diff --
    
    I am removing isRootContext flag.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to