Added zeros test.

This commit is contained in:
Nikolai Kochetov 2020-03-11 13:09:16 +03:00
parent 655ba5b0e7
commit 1d083ed812
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,48 @@
0
0
0
0
0
0
0
0
0
0
-
0
0
0
0
0
0
0
0
0
0
-
0
0
0
0
0
0
0
0
0
0
-
0
0
0
0
0
0
0
0
0
0
-
0 1000000000
0 1000000000
0 1000000000
0 1000000000

View File

@ -0,0 +1,12 @@
select zero from system.zeros limit 10 settings max_block_size = 3;
select '-';
select zero from system.zeros_mt limit 10 settings max_block_size = 3, max_threads = 2;
select '-';
select zero from zeros(10) settings max_block_size = 3;
select '-';
select zero from zeros_mt(10) settings max_block_size = 3, max_threads=3;
select '-';
select sum(zero), count() from (select * from system.zeros limit 1000000000);
select sum(zero), count() from (select * from system.zeros_mt limit 1000000000);
select sum(zero), count() from zeros(1000000000);
select sum(zero), count() from zeros_mt(1000000000);