FIRST3

This page describes the FIRST3 function in Lenses SQL.

FIRST3(strExpr)

Anonymize the value and only keep the first three characters.

Available in:

Processors
SQL Studio

Sample code:

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

Output:

{
  "value": {
    "first_name_hidden": "Bre*****",
    "first_name": "Brenda"
  }
}

Last updated

Logo

2024 © Lenses.io Ltd. Apache, Apache Kafka, Kafka and associated open source project names are trademarks of the Apache Software Foundation.