INDEXOF
This page describes the INDEXOF function in Lenses SQL.
INDEXOF(expr, substringExpr)
Returns the index of a substring in an expression.
Available in:
Sample code:
USE `kafka`;
SELECT
INDEXOF(email,'@'),
email
FROM users-topic
LIMIT 1;
Output:
{
"value": {
"INDEXOF": 9,
"email": "Jose.Hood@aol.com"
}
}