We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41acd75 commit 0f00d86Copy full SHA for 0f00d86
sql/core/src/test/scala/org/apache/spark/sql/SQLConfSuite.scala
@@ -70,4 +70,16 @@ class SQLConfSuite extends QueryTest {
70
conf.clear()
71
}
72
73
+ test("set itself returns all config variables currently specified in Hive or SQLConf") {
74
+ assert(sql("set").collect() === Seq(""))
75
+
76
+ sql(s"SET $testKey=$testVal")
77
+ assert(sql("set").collect() === Seq(s"$testKey=$testVal"))
78
79
+ sql(s"SET ${testKey + testKey}=${testVal + testVal}")
80
+ // TODO: should this be 1-elem Seq or 2-elem?
81
+ assert(sql("set").collect() ===
82
+ Seq(s"$testKey=$testVal\n${testKey + testKey}=${testVal + testVal}"))
83
+ }
84
85
0 commit comments