Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-35576][SQL] Redact the sensitive info in the result of Set com…
…mand ### What changes were proposed in this pull request? Currently, the results of following SQL queries are not redacted: ``` SET [KEY]; SET; ``` For example: ``` scala> spark.sql("set javax.jdo.option.ConnectionPassword=123456").show() +--------------------+------+ | key| value| +--------------------+------+ |javax.jdo.option....|123456| +--------------------+------+ scala> spark.sql("set javax.jdo.option.ConnectionPassword").show() +--------------------+------+ | key| value| +--------------------+------+ |javax.jdo.option....|123456| +--------------------+------+ scala> spark.sql("set").show() +--------------------+--------------------+ | key| value| +--------------------+--------------------+ |javax.jdo.option....| 123456| ``` We should hide the sensitive information and redact the query output. ### Why are the changes needed? Security. ### Does this PR introduce _any_ user-facing change? Yes, the sensitive information in the output of Set commands are redacted ### How was this patch tested? Unit test Closes #32712 from gengliangwang/redactSet. Authored-by: Gengliang Wang <gengliang@apache.org> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
- Loading branch information