mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test [#METR-23945].
This commit is contained in:
parent
c195b0212b
commit
dd0b5a1b82
@ -0,0 +1,60 @@
|
||||
0 10
|
||||
1 10
|
||||
2 10
|
||||
3 10
|
||||
4 10
|
||||
5 10
|
||||
6 10
|
||||
7 10
|
||||
8 10
|
||||
9 10
|
||||
0 10
|
||||
1 10
|
||||
2 10
|
||||
3 10
|
||||
4 10
|
||||
5 10
|
||||
6 10
|
||||
7 10
|
||||
8 10
|
||||
9 10
|
||||
0 10
|
||||
1 10
|
||||
2 10
|
||||
3 10
|
||||
4 10
|
||||
5 10
|
||||
6 10
|
||||
7 10
|
||||
8 10
|
||||
9 10
|
||||
0 10
|
||||
1 10
|
||||
2 10
|
||||
3 10
|
||||
4 10
|
||||
5 10
|
||||
6 10
|
||||
7 10
|
||||
8 10
|
||||
9 10
|
||||
0 10
|
||||
1 10
|
||||
2 10
|
||||
3 10
|
||||
4 10
|
||||
5 10
|
||||
6 10
|
||||
7 10
|
||||
8 10
|
||||
9 10
|
||||
0 10
|
||||
1 10
|
||||
2 10
|
||||
3 10
|
||||
4 10
|
||||
5 10
|
||||
6 10
|
||||
7 10
|
||||
8 10
|
||||
9 10
|
48
dbms/tests/queries/0_stateless/00401_merge_and_stripelog.sql
Normal file
48
dbms/tests/queries/0_stateless/00401_merge_and_stripelog.sql
Normal file
@ -0,0 +1,48 @@
|
||||
DROP TABLE IF EXISTS test.stripe1;
|
||||
DROP TABLE IF EXISTS test.stripe2;
|
||||
DROP TABLE IF EXISTS test.stripe3;
|
||||
DROP TABLE IF EXISTS test.stripe4;
|
||||
DROP TABLE IF EXISTS test.stripe5;
|
||||
DROP TABLE IF EXISTS test.stripe6;
|
||||
DROP TABLE IF EXISTS test.stripe7;
|
||||
DROP TABLE IF EXISTS test.stripe8;
|
||||
DROP TABLE IF EXISTS test.stripe9;
|
||||
DROP TABLE IF EXISTS test.stripe10;
|
||||
DROP TABLE IF EXISTS test.merge;
|
||||
|
||||
CREATE TABLE test.stripe1 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
CREATE TABLE test.stripe2 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
CREATE TABLE test.stripe3 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
CREATE TABLE test.stripe4 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
CREATE TABLE test.stripe5 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
CREATE TABLE test.stripe6 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
CREATE TABLE test.stripe7 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
CREATE TABLE test.stripe8 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
CREATE TABLE test.stripe9 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
CREATE TABLE test.stripe10 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10;
|
||||
|
||||
CREATE TABLE test.merge AS test.stripe1 ENGINE = Merge(test, '^stripe\\d+');
|
||||
|
||||
SELECT x, count() FROM test.merge GROUP BY x ORDER BY x;
|
||||
SET max_threads = 1;
|
||||
SELECT x, count() FROM test.merge GROUP BY x ORDER BY x;
|
||||
SET max_threads = 2;
|
||||
SELECT x, count() FROM test.merge GROUP BY x ORDER BY x;
|
||||
SET max_threads = 5;
|
||||
SELECT x, count() FROM test.merge GROUP BY x ORDER BY x;
|
||||
SET max_threads = 10;
|
||||
SELECT x, count() FROM test.merge GROUP BY x ORDER BY x;
|
||||
SET max_threads = 20;
|
||||
SELECT x, count() FROM test.merge GROUP BY x ORDER BY x;
|
||||
|
||||
DROP TABLE IF EXISTS test.stripe1;
|
||||
DROP TABLE IF EXISTS test.stripe2;
|
||||
DROP TABLE IF EXISTS test.stripe3;
|
||||
DROP TABLE IF EXISTS test.stripe4;
|
||||
DROP TABLE IF EXISTS test.stripe5;
|
||||
DROP TABLE IF EXISTS test.stripe6;
|
||||
DROP TABLE IF EXISTS test.stripe7;
|
||||
DROP TABLE IF EXISTS test.stripe8;
|
||||
DROP TABLE IF EXISTS test.stripe9;
|
||||
DROP TABLE IF EXISTS test.stripe10;
|
||||
DROP TABLE IF EXISTS test.merge;
|
Loading…
Reference in New Issue
Block a user