This page describes the COUNT function in Lenses SQL.
COUNT(*) AS total
Returns the number of records returned by a query or the records in a group as a result of a GROUP BY statement.
GROUP BY
Available in:
✓
Sample code:
USE `kafka`; SELECT COUNT(id) FROM orders-events
Output:
{ "value": { "COUNT": 1000 } }