LAST4
This page describes the LAST4 function in Lenses SQL.
Anonymize the value and only keep the last four characters.
Available in:
Sample code:
USE `kafka`;
SELECT
LAST4(first_name) AS first_name_hidden,
first_name
FROM users-events
LIMIT 1;
Output:
{
"value": {
"first_name_hidden": "*****enda",
"first_name": "Brenda"
}
}