mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Add tests
This commit is contained in:
parent
2b5ef8bdef
commit
7f4e982d13
@ -0,0 +1,3 @@
|
||||
1000000
|
||||
1000000
|
||||
1000000
|
22
dbms/tests/queries/0_stateless/01021_only_tuple_columns.sql
Normal file
22
dbms/tests/queries/0_stateless/01021_only_tuple_columns.sql
Normal file
@ -0,0 +1,22 @@
|
||||
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;
|
Loading…
Reference in New Issue
Block a user