ABBREVIATE

This page describes the ABBREVIATE function in Lenses SQL.

ABBREVIATE(expr, lengthExpr)

Abbreviates the expression to the given length and appends ellipses.

Available in:

Processors
SQL Studio

Sample code:

USE `kafka`;
SELECT 
    ABBREVIATE(password_hash, 10), 
    password_hash 
FROM users-topic
LIMIT 1;

Output:

{
  "value": {
    "ABBREVIATE": "cc53c3b...",
    "password_hash": "cc53c3b3b0b966804573ceb917390510de95742d7caf3d7474872fd17f01f428"
  }
}

Last updated

Logo

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