For the complete documentation index, see llms.txt. This page is also available as Markdown.

LAST1

This page describes the LAST1 function in Lenses SQL.

LAST1(strExpr)

Anonymize the value and only keep the last character.

Available in:

Processors
SQL Studio

Sample code:

USE `kafka`;
SELECT 
  LAST1(first_name) AS first_name_hidden,
  first_name
FROM users-events
LIMIT 1;

Output:

{
  "value": {
    "first_name_hidden": "*****s",
    "first_name": "Charles"
  }
}

Last updated

Was this helpful?