Skip to content

Commit 6d14ceb

Browse files
HOTFIX: clear() confs in SQLConf related unit tests.
1 parent 1abbde0 commit 6d14ceb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/SQLConfSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class SQLConfSuite extends QueryTest {
2828
val testVal = "test.val.0"
2929

3030
test("programmatic ways of basic setting and getting") {
31+
clear()
3132
assert(getOption(testKey).isEmpty)
3233
assert(getAll.toSet === Set())
3334

@@ -48,6 +49,7 @@ class SQLConfSuite extends QueryTest {
4849
}
4950

5051
test("parse SQL set commands") {
52+
clear()
5153
sql(s"set $testKey=$testVal")
5254
assert(get(testKey, testVal + "_") == testVal)
5355
assert(TestSQLContext.get(testKey, testVal + "_") == testVal)

sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ class SQLQuerySuite extends QueryTest {
402402
sql(s"SET $nonexistentKey"),
403403
Seq(Seq(s"$nonexistentKey is undefined"))
404404
)
405+
clear()
405406
}
406407

407408
}

0 commit comments

Comments
 (0)