RPAD

This page describes the REGEX_MATCHES function in Lenses SQL.

RPAD(strExpr, lengthExpr, padExpr)

Appends the value of padExpr to the value of strExpr until the total length is lengthExpr.

Available in:

ProcessorsSQL Studio

Sample code:

USE `kafka`;
SELECT 
    RPAD(email, 50, ' '), 
    email 
FROM users-topic
LIMIT 1;

Output:

{
  "value": {
    "RPAD": "Jose.Hood@aol.com                                 ",
    "email": "Jose.Hood@aol.com"
  }
}

Last updated

Logo

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