Skip to content
Snippets Groups Projects
Commit 1e9b59b7 authored by Holden Karau's avatar Holden Karau Committed by Sean Owen
Browse files

[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.
parent 2a0de7dc
No related branches found
No related tags found
No related merge requests found
......@@ -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")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment