DELETEWHITESPACE

This page describes the DELETEWHITESPACE function in Lenses SQL.

DELETEWHITESPACE(expr)

Removes all whitespace from an expression of type string.

Available in:

Processors
SQL Studio

Sample code:

USE `kafka`;
SELECT 
    DELETEWHITESPACE(product_name), 
    product_name 
FROM products-topic
LIMIT 1;

Output:

{
  "value": {
    "DELETEWHITESPACE": "SoftShirt",
    "product_name": "Soft Shirt"
  }
}

Last updated

Logo

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