diff options
author | Holden Karau <holden@us.ibm.com> | 2016-08-01 06:55:31 -0700 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-08-01 06:55:31 -0700 |
commit | 1e9b59b73bdb8aacf5a85e0eed29efc6485a3bc3 (patch) | |
tree | fe2948ba58f43c50c653591d041ab533acc70ea1 /sql | |
parent | 2a0de7dc995844984d7dbb4238418967c6bbac70 (diff) | |
download | spark-1e9b59b73bdb8aacf5a85e0eed29efc6485a3bc3.tar.gz spark-1e9b59b73bdb8aacf5a85e0eed29efc6485a3bc3.tar.bz2 spark-1e9b59b73bdb8aacf5a85e0eed29efc6485a3bc3.zip |
[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.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 4454cad7bc..7424e177c5 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") } |