aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-07-18 18:03:35 -0700
committerReynold Xin <rxin@databricks.com>2016-07-18 18:03:35 -0700
commit69c773052acc627eb033614797de9b913dfa35c1 (patch)
tree098e30d7ef91801dfb3039386afe90be308bb19b
parentc4524f5193e1b3ce1c56c5aed126f4121ce26d23 (diff)
downloadspark-69c773052acc627eb033614797de9b913dfa35c1.tar.gz
spark-69c773052acc627eb033614797de9b913dfa35c1.tar.bz2
spark-69c773052acc627eb033614797de9b913dfa35c1.zip
[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 <rxin@databricks.com> Closes #14252 from rxin/SPARK-16615.
-rw-r--r--sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala4
1 files changed, 3 insertions, 1 deletions
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 1a40b7e2c1..2ade36d075 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.