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:
Sample code:
USE `kafka`;
SELECT
SUBSTR(email, 10 , 20),
email
FROM users-topic
LIMIT 1;
Output:
{
"value": {
"SUBSTR": "aol.com",
"email": "Jose.Hood@aol.com"
}
}