aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2016-04-25 20:54:31 -0700
committerReynold Xin <rxin@databricks.com>2016-04-25 20:54:31 -0700
commit18c2c92580bdc27aa5129d9e7abda418a3633ea6 (patch)
tree5d4222dd42ea584ad8259fbe7e22f1eb9b5bdb3c /project
parentfa3c06987e6148975dd54b629bd9094224358175 (diff)
downloadspark-18c2c92580bdc27aa5129d9e7abda418a3633ea6.tar.gz
spark-18c2c92580bdc27aa5129d9e7abda418a3633ea6.tar.bz2
spark-18c2c92580bdc27aa5129d9e7abda418a3633ea6.zip
[SPARK-14861][SQL] Replace internal usages of SQLContext with SparkSession
## What changes were proposed in this pull request? In Spark 2.0, `SparkSession` is the new thing. Internally we should stop using `SQLContext` everywhere since that's supposed to be not the main user-facing API anymore. In this patch I took care to not break any public APIs. The one place that's suspect is `o.a.s.ml.source.libsvm.DefaultSource`, but according to mengxr it's not supposed to be public so it's OK to change the underlying `FileFormat` trait. **Reviewers**: This is a big patch that may be difficult to review but the changes are actually really straightforward. If you prefer I can break it up into a few smaller patches, but it will delay the progress of this issue a little. ## How was this patch tested? No change in functionality intended. Author: Andrew Or <andrew@databricks.com> Closes #12625 from andrewor14/spark-session-refactor.
Diffstat (limited to 'project')
-rw-r--r--project/MimaExcludes.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/project/MimaExcludes.scala b/project/MimaExcludes.scala
index 27838167fd..0f8648f890 100644
--- a/project/MimaExcludes.scala
+++ b/project/MimaExcludes.scala
@@ -672,6 +672,20 @@ object MimaExcludes {
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.executor.InputMetrics.this"),
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.executor.OutputMetrics.this")
) ++ Seq(
+ // SPARK-14861: Replace internal usages of SQLContext with SparkSession
+ ProblemFilters.exclude[IncompatibleMethTypeProblem](
+ "org.apache.spark.ml.clustering.LocalLDAModel.this"),
+ ProblemFilters.exclude[IncompatibleMethTypeProblem](
+ "org.apache.spark.ml.clustering.DistributedLDAModel.this"),
+ ProblemFilters.exclude[IncompatibleMethTypeProblem](
+ "org.apache.spark.ml.clustering.LDAModel.this"),
+ ProblemFilters.exclude[DirectMissingMethodProblem](
+ "org.apache.spark.ml.clustering.LDAModel.sqlContext"),
+ ProblemFilters.exclude[IncompatibleMethTypeProblem](
+ "org.apache.spark.sql.Dataset.this"),
+ ProblemFilters.exclude[IncompatibleMethTypeProblem](
+ "org.apache.spark.sql.DataFrameReader.this")
+ ) ++ Seq(
// [SPARK-4452][Core]Shuffle data structures can starve others on the same thread for memory
ProblemFilters.exclude[IncompatibleTemplateDefProblem]("org.apache.spark.util.collection.Spillable")
)