Loading...
This page describes the TRUNCATE function in Lenses SQL.
TRUNCATE(strExpr, nExpr)
Truncates a string so that it has at most N characters.
Available in:
Sample code:
USE `kafka`; SELECT `TRUNCATE`(first_name, 2), first_name FROM users-topic LIMIT 1;
Output:
{ "value": { "TRUNCATE": "Jo", "first_name": "Jose" } }
✓