Limit & Sampling
Understand using limits and sampling when querying Kafka topic data with Lenses SQL Snapshot concepts engine for Apache Kafka
Limit the output
-- limit to 1 record
SELECT *
FROM groceries
LIMIT 1
-- set the data size returned to be 1 megabyte.
SET max.size="1m";
-- on the small dataset we have here 1 MB will accommodate all records added and more
SELECT *
FROM groceriesSet a time limit for a query
SET max.query.time = '1h';
SELECT ...
FROM table
LIMIT 1000Sampling data
Last updated
Was this helpful?

