AVG
This page describes the AVG function in Lenses SQL.
AVG(numExpr)Processor (stateless)
Processors (stateful)
SQL Studio
CREATE TABLE order-events
(_key string, total int, orderId int)
FORMAT
(string, json)
PROPERTIES
(partitions=1, compacted=false);
INSERT INTO order-events
(_key, name, total, orderId)
VALUES
("user1",23423,23423USE `kafka`;
SELECT AVG(total)
FROM orders-events
LIMIT 1000;Last updated
Was this helpful?

