SUBSTR
This page describes the SUBSTR function in Lenses SQL.
SUBSTR(expr, startIndexExpr)
Returns a new string that is a substring of this string.
Available in:
Processors
SQL Studio
✓
✓
Sample code:
USE `kafka`;
SELECT
SUBSTR(email, 10 , 20),
email
FROM users-topic
LIMIT 1;
Output:
{
"value": {
"SUBSTR": "aol.com",
"email": "[email protected]"
}
}
Last updated
Was this helpful?