mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
-- { echoOn }
|
|
set parallel_view_processing=1;
|
|
insert into testX select number from numbers(10) settings log_queries=1; -- { serverError FUNCTION_THROW_IF_VALUE_IS_NON_ZERO }
|
|
system flush logs;
|
|
select length(thread_ids) from system.query_log where current_database = currentDatabase() and type != 'QueryStart' and query like '%insert into testX %' and Settings['parallel_view_processing'] = '1';
|
|
8
|
|
select count() from testX;
|
|
10
|
|
select count() from testXA;
|
|
10
|
|
select count() from testXB;
|
|
0
|
|
select count() from testXC;
|
|
10
|
|
set parallel_view_processing=0;
|
|
insert into testX select number from numbers(10) settings log_queries=1; -- { serverError FUNCTION_THROW_IF_VALUE_IS_NON_ZERO }
|
|
system flush logs;
|
|
select length(thread_ids) from system.query_log where current_database = currentDatabase() and type != 'QueryStart' and query like '%insert into testX %' and Settings['parallel_view_processing'] = '0';
|
|
5
|
|
select count() from testX;
|
|
20
|
|
select count() from testXA;
|
|
20
|
|
select count() from testXB;
|
|
0
|
|
select count() from testXC;
|
|
20
|