This commit is contained in:
Guillaume Tassery 2020-01-10 12:20:40 +01:00
parent 121d651914
commit 4c316e7671
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,2 @@
0
10000000

View File

@ -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;