yaooqinn commented on code in PR #40576:
URL: https://github.com/apache/spark/pull/40576#discussion_r1151309682
##########
sql/core/src/test/scala/org/apache/spark/sql/SetCommandSuite.scala:
##########
@@ -143,4 +144,15 @@ class SetCommandSuite extends QueryTest with
SharedSparkSession with ResetSystem
assert(!allValues.exists(v => v.contains(value1) || v.contains(value2)))
}
}
+
+ test("SPARK-42946: Set command could expose sensitive data through key") {
+ val key1 = "test.password"
+ val value1 = "test.value1"
+ withSQLConf(key1 -> value1) {
+ checkError(
+ intercept[ParseException](sql("SET ${test.password}")),
Review Comment:
Yes, as described in the PR desc. Well, if value1 here is in a invalid form,
it may fail
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]