You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/10/07 19:27:21 UTC

[GitHub] [spark] vinodkc commented on pull request #38146: [SPARK-40687][SQL] Support data masking built-in Function 'mask'

vinodkc commented on PR #38146:
URL: https://github.com/apache/spark/pull/38146#issuecomment-1272016984

   @HyukjinKwon , this PR is a generic approach to mask the string based on the arguments. This mask function can be applied to any string value and it does not expect a pattern on the input string. Apache Hive **mask** function has the same logic.
   Eg: 
   Arguments:
         * input      - string value to mask. Supported types: STRING, VARCHAR, CHAR
         * upperChar  - character to replace upper-case characters with. Specify -1 to retain the original character. Default value: 'X'
         * lowerChar  - character to replace lower-case characters with. Specify -1 to retain the original character. Default value: 'x'
         * digitChar  - character to replace digit characters with. Specify -1 to retain the original character. Default value: 'n'
         * otherChar  - character to replace all other characters with. Specify -1 to retain the original character. Default value: -1
   


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org