Limit & Sampling
This page describes how to limit return and sample data in Kafka with Lenses SQL Studio.
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 groceries
Set a time limit for a query
Sampling data
Last updated
Was this helpful?

