You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2016/07/19 01:03:39 UTC

spark git commit: [SPARK-16615][SQL] Expose sqlContext in SparkSession

Repository: spark
Updated Branches:
  refs/heads/master c4524f519 -> 69c773052


[SPARK-16615][SQL] Expose sqlContext in SparkSession

## What changes were proposed in this pull request?
This patch removes the private[spark] qualifier for SparkSession.sqlContext, as discussed in http://apache-spark-developers-list.1001551.n3.nabble.com/Re-transtition-SQLContext-to-SparkSession-td18342.html

## How was this patch tested?
N/A - this is a visibility change.

Author: Reynold Xin <rx...@databricks.com>

Closes #14252 from rxin/SPARK-16615.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/69c77305
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/69c77305
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/69c77305

Branch: refs/heads/master
Commit: 69c773052acc627eb033614797de9b913dfa35c1
Parents: c4524f5
Author: Reynold Xin <rx...@databricks.com>
Authored: Mon Jul 18 18:03:35 2016 -0700
Committer: Reynold Xin <rx...@databricks.com>
Committed: Mon Jul 18 18:03:35 2016 -0700

----------------------------------------------------------------------
 sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/69c77305/sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala b/sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
index 1a40b7e..2ade36d 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
@@ -115,9 +115,11 @@ class SparkSession private(
 
   /**
    * A wrapped version of this session in the form of a [[SQLContext]], for backward compatibility.
+   *
+   * @since 2.0.0
    */
   @transient
-  private[spark] val sqlContext: SQLContext = new SQLContext(this)
+  val sqlContext: SQLContext = new SQLContext(this)
 
   /**
    * Runtime configuration interface for Spark.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org