[jira] [Commented] (SPARK-40687) Support data masking built-in Function 'mask'
[ https://issues.apache.org/jira/browse/SPARK-40687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17677988#comment-17677988 ] Vinod KC commented on SPARK-40687: -- Note: Please refer [SPARK-42070|https://issues.apache.org/jira/browse/SPARK-42070] , it changes the default value of argument of Mask udf from -1 to NULL > Support data masking built-in Function 'mask' > -- > > Key: SPARK-40687 > URL: https://issues.apache.org/jira/browse/SPARK-40687 > Project: Spark > Issue Type: Sub-task > Components: SQL >Affects Versions: 3.4.0 >Reporter: Vinod KC >Assignee: Vinod KC >Priority: Minor > Fix For: 3.4.0 > > > Support data masking built-in Function *mask* > Return a masked version of str. By default, upper case letters should be > converted to "X", lower case letters should be converted to "x" and numbers > should be converted to "n". For example mask("abcd-EFGH-8765-4321") results > in ---. Should be able override the characters used in the > mask by supplying additional arguments: the second argument controls the mask > character for upper case letters, the third argument for lower case letters > and the fourth argument for numbers. For example, mask("abcd-EFGH-8765-4321", > "U", "l", "#") should result in --- > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-40687) Support data masking built-in Function 'mask'
[ https://issues.apache.org/jira/browse/SPARK-40687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17613864#comment-17613864 ] Apache Spark commented on SPARK-40687: -- User 'vinodkc' has created a pull request for this issue: https://github.com/apache/spark/pull/38146 > Support data masking built-in Function 'mask' > -- > > Key: SPARK-40687 > URL: https://issues.apache.org/jira/browse/SPARK-40687 > Project: Spark > Issue Type: Sub-task > Components: SQL >Affects Versions: 3.4.0 >Reporter: Vinod KC >Priority: Minor > > Support data masking built-in Function *mask* > Return a masked version of str. By default, upper case letters should be > converted to "X", lower case letters should be converted to "x" and numbers > should be converted to "n". For example mask("abcd-EFGH-8765-4321") results > in ---. Should be able override the characters used in the > mask by supplying additional arguments: the second argument controls the mask > character for upper case letters, the third argument for lower case letters > and the fourth argument for numbers. For example, mask("abcd-EFGH-8765-4321", > "U", "l", "#") should result in --- > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-40687) Support data masking built-in Function 'mask'
[ https://issues.apache.org/jira/browse/SPARK-40687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17613863#comment-17613863 ] Apache Spark commented on SPARK-40687: -- User 'vinodkc' has created a pull request for this issue: https://github.com/apache/spark/pull/38146 > Support data masking built-in Function 'mask' > -- > > Key: SPARK-40687 > URL: https://issues.apache.org/jira/browse/SPARK-40687 > Project: Spark > Issue Type: Sub-task > Components: SQL >Affects Versions: 3.4.0 >Reporter: Vinod KC >Priority: Minor > > Support data masking built-in Function *mask* > Return a masked version of str. By default, upper case letters should be > converted to "X", lower case letters should be converted to "x" and numbers > should be converted to "n". For example mask("abcd-EFGH-8765-4321") results > in ---. Should be able override the characters used in the > mask by supplying additional arguments: the second argument controls the mask > character for upper case letters, the third argument for lower case letters > and the fourth argument for numbers. For example, mask("abcd-EFGH-8765-4321", > "U", "l", "#") should result in --- > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org