mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Added test.
This commit is contained in:
parent
6527e04ec3
commit
aca1d8ac77
3
tests/queries/0_stateless/01356_view_threads.reference
Normal file
3
tests/queries/0_stateless/01356_view_threads.reference
Normal file
@ -0,0 +1,3 @@
|
||||
0 249999500000
|
||||
1 250000000000
|
||||
1
|
12
tests/queries/0_stateless/01356_view_threads.sql
Normal file
12
tests/queries/0_stateless/01356_view_threads.sql
Normal file
@ -0,0 +1,12 @@
|
||||
drop table if exists table_01356_view_threads;
|
||||
|
||||
create view table_01356_view_threads as select number % 10 as g, sum(number) as s from numbers_mt(1000000) group by g;
|
||||
|
||||
set log_queries = 1;
|
||||
set max_threads = 16;
|
||||
select g % 2 as gg, sum(s) from table_01356_view_threads group by gg order by gg;
|
||||
|
||||
system flush logs;
|
||||
select length(thread_ids) >= 16 from system.query_log where event_date >= today() - 1 and lower(query) like '%select g % 2 as gg, sum(s) from table_01356_view_threads group by gg order by gg%' and type = 'QueryFinish' order by query_start_time desc limit 1;
|
||||
|
||||
drop table if exists table_01356_view_threads;
|
Loading…
Reference in New Issue
Block a user