mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
28 lines
484 B
SQL
28 lines
484 B
SQL
-- Tags: no-replicated-database, no-parallel
|
|
-- Tag no-replicated-database: Unsupported type of ALTER query
|
|
|
|
CREATE TABLE test
|
|
(
|
|
`x` Tuple(UInt64, UInt64)
|
|
)
|
|
ENGINE = MergeTree
|
|
ORDER BY x;
|
|
|
|
INSERT INTO test SELECT (number, number) FROM numbers(1000000);
|
|
|
|
SELECT COUNT() FROM test;
|
|
|
|
ALTER TABLE test DETACH PARTITION tuple();
|
|
|
|
ALTER TABLE test ATTACH PARTITION tuple();
|
|
|
|
SELECT COUNT() FROM test;
|
|
|
|
DETACH TABLE test;
|
|
|
|
ATTACH TABLE test;
|
|
|
|
SELECT COUNT() FROM test;
|
|
|
|
DROP TABLE test;
|