spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [SPARK-16778][SQL][TRIVIAL] Fix deprecation warning with SQLContext
Date Mon, 01 Aug 2016 13:55:35 GMT
Repository: spark
Updated Branches:
  refs/heads/master 2a0de7dc9 -> 1e9b59b73


[SPARK-16778][SQL][TRIVIAL] Fix deprecation warning with SQLContext

## What changes were proposed in this pull request?

Change to non-deprecated constructor for SQLContext.

## How was this patch tested?

Existing tests

Author: Holden Karau <holden@us.ibm.com>

Closes #14406 from holdenk/SPARK-16778-fix-use-of-deprecated-SQLContext-constructor.


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

Branch: refs/heads/master
Commit: 1e9b59b73bdb8aacf5a85e0eed29efc6485a3bc3
Parents: 2a0de7d
Author: Holden Karau <holden@us.ibm.com>
Authored: Mon Aug 1 06:55:31 2016 -0700
Committer: Sean Owen <sowen@cloudera.com>
Committed: Mon Aug 1 06:55:31 2016 -0700

----------------------------------------------------------------------
 .../test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/1e9b59b7/sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala
index 4454cad..7424e17 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala
@@ -28,7 +28,7 @@ class SQLConfSuite extends QueryTest with SharedSQLContext {
   test("propagate from spark conf") {
     // We create a new context here to avoid order dependence with other tests that might
call
     // clear().
-    val newContext = new SQLContext(sparkContext)
+    val newContext = new SQLContext(SparkSession.builder().sparkContext(sparkContext).getOrCreate())
     assert(newContext.getConf("spark.sql.testkey", "false") === "true")
   }
 


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


Mime
View raw message