linhongliu-db commented on a change in pull request #30363:
URL: https://github.com/apache/spark/pull/30363#discussion_r567885935
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala
##########
@@ -106,6 +114,16 @@ class SQLConfSuite extends QueryTest with
SharedSparkSession {
Row("spark.sql.groupByOrdinal", "false"))
}
+ test("eager init") {
+ checkAnswer(
+ sql("SET").where(s"key = '${FakeConf.FAKE_CONFIG.key}'").select("key",
"value"),
+ Nil)
Review comment:
```
// (In Hive, "SET" returns all changed properties while "SET -v" returns
all properties.)
// Queries all key-value pairs that are set in the SQLConf of the
sparkSession.
```
according to the comments in `SetCommand`, `SET` should not output the
config that not changed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]