Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15358#discussion_r82001717
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala
 ---
    @@ -52,9 +52,15 @@ case class CatalogStorageFormat(
         properties: Map[String, String]) {
     
       override def toString: String = {
    +    val maskedProperties = properties.map {
    +      case (password, _) if password.toLowerCase == "password" => 
(password, "###")
    --- End diff --
    
    Yeah, you are right. 
    
    At the beginning, I also thought maybe we just need to hide the password 
value instead of hiding the whole URL. Later, when I read another PR: 
https://github.com/apache/spark/pull/10452, I thought maybe we can hide the 
whole `url`. After rethinking it, users might need to see the other field 
values. Will follow your suggestions to hide password values only. Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to