ivoson commented on code in PR #41718:
URL: https://github.com/apache/spark/pull/41718#discussion_r1241198931


##########
sql/core/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -6379,6 +6428,32 @@ object functions {
   def to_json(e: Column): Column =
     to_json(e, Map.empty[String, String])
 
+  // scalastyle:off line.size.limit
+  /**
+   * Masks the given string value. This can be useful for creating copies of 
tables with sensitive
+   * information removed.
+   *
+   * @param input string value to mask. Supported types: STRING, VARCHAR, CHAR
+   * @param upperChar character to replace upper-case characters with. Specify 
NULL to retain original character.
+   * @param lowerChar character to replace lower-case characters with. Specify 
NULL to retain original character.
+   * @param digitChar character to replace digit characters with. Specify NULL 
to retain original character.
+   * @param otherChar character to replace all other characters with. Specify 
NULL to retain original character.
+   *
+   * @group string_funcs
+   * @since 3.5.0
+   */
+  // scalastyle:on line.size.limit
+  def mask(
+    input: Column,
+    upperChar: Column,
+    lowerChar: Column,
+    digitChar: Column,
+    otherChar: Column): Column = {

Review Comment:
   Sure, will add the other constuctors. Thanks.



-- 
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]

Reply via email to