mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix 01323_too_many_threads_bug (use arrayUniq() over length())
This commit is contained in:
parent
e37c42c56c
commit
43af55b9a1
@ -9,11 +9,11 @@ set log_queries = 1;
|
||||
select x from table_01323_many_parts limit 10 format Null;
|
||||
|
||||
system flush logs;
|
||||
select length(thread_ids) <= 4 from system.query_log where event_date >= today() - 1 and lower(query) like '%select x from table_01323_many_parts%' and type = 'QueryFinish' order by query_start_time desc limit 1;
|
||||
select arrayUniq(thread_ids) <= 4 from system.query_log where event_date >= today() - 1 and lower(query) like '%select x from table_01323_many_parts%' and type = 'QueryFinish' order by query_start_time desc limit 1;
|
||||
|
||||
select x from table_01323_many_parts order by x limit 10 format Null;
|
||||
|
||||
system flush logs;
|
||||
select length(thread_ids) <= 20 from system.query_log where event_date >= today() - 1 and lower(query) like '%select x from table_01323_many_parts order by x%' and type = 'QueryFinish' order by query_start_time desc limit 1;
|
||||
select arrayUniq(thread_ids) <= 20 from system.query_log where event_date >= today() - 1 and lower(query) like '%select x from table_01323_many_parts order by x%' and type = 'QueryFinish' order by query_start_time desc limit 1;
|
||||
|
||||
drop table if exists table_01323_many_parts;
|
||||
|
Loading…
Reference in New Issue
Block a user