CONCAT

This page describes the CONCAT function in Lenses SQL.

CONCAT(expr1, expr2, expr3)

Returns the string representation of concatenating each expression in the list. Null fields are left out.

Available in:

Sample code:

USE `kafka`;
SELECT 
    CONCAT(first_name,' ', last_name),
    first_name, 
    last_name 
FROM users-topic
LIMIT 1;

Output:

{
  "value": {
    "CONCAT": "Jose Hood",
    "first_name": "Jose",
    "last_name": "Hood"
  }
}

Last updated

Logo

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