2021-09-21 15:47:48 +00:00
|
|
|
-- Tags: no-parallel
|
2021-09-12 12:35:27 +00:00
|
|
|
|
2020-01-24 20:14:42 +00:00
|
|
|
DROP TABLE IF EXISTS test;
|
2023-08-12 19:50:22 +00:00
|
|
|
CREATE TABLE test Engine = MergeTree ORDER BY number SETTINGS index_granularity = 8192, index_granularity_bytes = '10Mi' AS SELECT number, toString(rand()) x from numbers(10000000);
|
2020-01-10 11:20:40 +00:00
|
|
|
|
2020-01-10 11:22:07 +00:00
|
|
|
SELECT count() FROM test;
|
|
|
|
|
2020-08-15 05:21:02 +00:00
|
|
|
ALTER TABLE test DETACH PARTITION tuple();
|
2020-01-10 11:20:40 +00:00
|
|
|
|
|
|
|
SELECT count() FROM test;
|
|
|
|
|
|
|
|
DETACH TABLE test;
|
|
|
|
ATTACH TABLE test;
|
|
|
|
|
|
|
|
ALTER TABLE test ATTACH PARTITION tuple();
|
|
|
|
|
|
|
|
SELECT count() FROM test;
|
|
|
|
|
|
|
|
DROP TABLE test;
|