REPLACE

This page describes the REPLACE function in Lenses SQL.

REPLACE (sourceExpr, targetExpr, replaceExpr)

Returns a new string in which all occurrences of a specified String in the current string are replaced with another specified String.

Available in:

ProcessorsSQL Studio

Sample code:

# REPLACE IS WITH ISSUE

USE `kafka`;
SELECT 
    REPLACE(status, 'unverified', 'verify urgent') 
FROM users-topic
LIMIT 100;

# Expected keyword FROM

Output:

// Some code

Last updated

Logo

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