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