ClickHouse/tests/queries/0_stateless/01910_memory_tracking_topk.sql

7 lines
229 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-replicated-database
-- Memory limit must correctly apply, triggering an exception:
SET max_memory_usage = '100M';
SELECT length(topK(5592405)(tuple(number))) FROM numbers(10) GROUP BY number; -- { serverError 241 }