ClickHouse/tests/queries/0_stateless/01275_parallel_mv.reference

28 lines
1.0 KiB
Plaintext
Raw Normal View History

2021-10-05 19:20:46 +00:00
-- { 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;
2022-03-02 19:04:14 +00:00
select length(thread_ids) >= 8 from system.query_log where current_database = currentDatabase() and type != 'QueryStart' and query like '%insert into testX %' and Settings['parallel_view_processing'] = '1';
1
2021-10-05 19:20:46 +00:00
select count() from testX;
2020-05-08 16:15:49 +00:00
10
2021-10-05 19:20:46 +00:00
select count() from testXA;
2020-05-08 16:15:49 +00:00
10
2021-10-05 19:20:46 +00:00
select count() from testXB;
2020-05-08 16:15:49 +00:00
0
2021-10-05 19:20:46 +00:00
select count() from testXC;
2020-05-08 16:15:49 +00:00
10
2021-10-05 19:20:46 +00:00
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;
2022-03-02 19:04:14 +00:00
select length(thread_ids) >= 5 from system.query_log where current_database = currentDatabase() and type != 'QueryStart' and query like '%insert into testX %' and Settings['parallel_view_processing'] = '0';
1
2021-10-05 19:20:46 +00:00
select count() from testX;
20
select count() from testXA;
20
select count() from testXB;
0
select count() from testXC;
20