diff options
author | gatorsmile <gatorsmile@gmail.com> | 2016-06-21 23:12:08 -0700 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2016-06-21 23:12:08 -0700 |
commit | 0e3ce75332dd536c0db8467d456ad46e4bf228f4 (patch) | |
tree | 2f9d0397ec0250072cdc8713f19c4dc432ccc790 /sql/core | |
parent | 7580f3041a1a3757a0b14b9d8afeb720f261fff6 (diff) | |
download | spark-0e3ce75332dd536c0db8467d456ad46e4bf228f4.tar.gz spark-0e3ce75332dd536c0db8467d456ad46e4bf228f4.tar.bz2 spark-0e3ce75332dd536c0db8467d456ad46e4bf228f4.zip |
[SPARK-15644][MLLIB][SQL] Replace SQLContext with SparkSession in MLlib
#### What changes were proposed in this pull request?
This PR is to use the latest `SparkSession` to replace the existing `SQLContext` in `MLlib`. `SQLContext` is removed from `MLlib`.
Also fix a test case issue in `BroadcastJoinSuite`.
BTW, `SQLContext` is not being used in the `MLlib` test suites.
#### How was this patch tested?
Existing test cases.
Author: gatorsmile <gatorsmile@gmail.com>
Author: xiaoli <lixiao1983@gmail.com>
Author: Xiao Li <xiaoli@Xiaos-MacBook-Pro.local>
Closes #13380 from gatorsmile/sqlContextML.
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala | 2 |
1 files changed, 1 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 251f47d5fb..a3fd39d42e 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 @@ -110,7 +110,7 @@ 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[spark] val sqlContext: SQLContext = new SQLContext(this) /** * Runtime configuration interface for Spark. |