TAKERIGHT

This page describes the TAKERIGHT function in Lenses SQL.

TAKERIGHT(expr, lengthExpr)

Returns the rightmost ’length’ characters from a string expression

Available in:

Processors
SQL Studio

Sample code:

USE `kafka`;
SELECT 
    TAKERIGHT(first_name, 3), 
    first_name 
FROM users-topic
LIMIT 1;

Output:

{
  "value": {
    "TAKERIGHT": "ose",
    "first_name": "Jose"
  }
}

Last updated

Logo

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