mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
add test
This commit is contained in:
parent
121d651914
commit
4c316e7671
@ -0,0 +1,2 @@
|
||||
0
|
||||
10000000
|
@ -0,0 +1,14 @@
|
||||
CREATE TABLE IF NOT EXISTS test Engine = MergeTree ORDER BY number AS SELECT number, toString(rand()) x from numbers(10000000);
|
||||
|
||||
ALTER TABLE test detach partition tuple();
|
||||
|
||||
SELECT count() FROM test;
|
||||
|
||||
DETACH TABLE test;
|
||||
ATTACH TABLE test;
|
||||
|
||||
ALTER TABLE test ATTACH PARTITION tuple();
|
||||
|
||||
SELECT count() FROM test;
|
||||
|
||||
DROP TABLE test;
|
Loading…
Reference in New Issue
Block a user