ClickHouse/tests/queries/0_stateless/01021_only_tuple_columns.sql

28 lines
484 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-replicated-database, no-parallel
-- Tag no-replicated-database: Unsupported type of ALTER query
2019-10-30 14:51:30 +00:00
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;