The SQL Studio performs snapshot queries, which means it processes data up to a certain limit to avoid overloading Lenses and Kafka. By default, it scans only 200MB. To execute the query on more data from the topic, you need to configure the “max.size” parameter, for example:
SET max.size = '1g';
SELECT * FROM user-events-apps WHERE
_meta.timestamp > now()-'48h' AND eventName="Error User";
There are other configurations that can be made in the SQL Studio, take a look at them as there might be other features that could be useful to you, link:
To increase the amount of data used in the query affects Kafka processing when retrieving messages, increases network bandwidth consumption between Kafka and Lenses, and extends Lenses ‘ response time due to processing more data. Change with caution to avoid negatively impacting your environment.