FIRST
This page describes the FIRST function in Lenses SQL.
Returns the first item seen in a group.
Available in:
Processor (stateless)
Processors (stateful)
SQL Studio
Sample code:
USE `kafka`;
SELECT FIRST(id)
FROM orders-events
Output:
{
"value": {
"FIRST": "d4e60554-260d-4f14-873a-9c0352ad9387"
}
}