ClickHouse/tests/queries/0_stateless/01021_only_tuple_columns.sql
2023-08-11 00:00:36 +02:00

26 lines
376 B
SQL

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;