mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Missed tests
This commit is contained in:
parent
daaa5cc382
commit
1ef39839d0
@ -0,0 +1,2 @@
|
||||
CREATE TABLE default.non_metadata_alters\n(\n `key` UInt64,\n `value1` String,\n `value2` Enum8(\'Hello\' = 1, \'World\' = 2),\n `value3` UInt16 TTL value5 + toIntervalDay(5),\n `value4` DateTime,\n `value5` Date\n)\nENGINE = MergeTree()\nORDER BY tuple()\nSETTINGS index_granularity = 8192
|
||||
CREATE TABLE default.non_metadata_alters\n(\n `key` UInt64,\n `value1` String DEFAULT \'X\',\n `value2` Enum8(\'Hello\' = 1, \'World\' = 2, \'!\' = 3),\n `value3` Date TTL value5 + toIntervalDay(5),\n `value4` UInt32,\n `value5` Date,\n `value6` Decimal(3, 3)\n)\nENGINE = MergeTree()\nORDER BY tuple()\nSETTINGS index_granularity = 8192
|
@ -0,0 +1,49 @@
|
||||
DROP TABLE IF EXISTS non_metadata_alters;
|
||||
|
||||
CREATE TABLE non_metadata_alters (
|
||||
key UInt64,
|
||||
value1 String,
|
||||
value2 Enum8('Hello' = 1, 'World' = 2),
|
||||
value3 UInt16,
|
||||
value4 DateTime,
|
||||
value5 Date
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY tuple();
|
||||
|
||||
|
||||
SET allow_non_metadata_alters = 0;
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value3 UInt64; --{serverError 524}
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value1 UInt32; --{serverError 524}
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value4 Date; --{serverError 524}
|
||||
|
||||
ALTER TABLE non_metadata_alters DROP COLUMN value4; --{serverError 524}
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value2 Enum8('x' = 5, 'y' = 6); --{serverError 524}
|
||||
|
||||
ALTER TABLE non_metadata_alters RENAME COLUMN value4 TO renamed_value4; --{serverError 524}
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value3 UInt16 TTL value5 + INTERVAL 5 DAY; --{serverError 524}
|
||||
|
||||
SET materialize_ttl_after_modify = 0;
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value3 UInt16 TTL value5 + INTERVAL 5 DAY;
|
||||
|
||||
SHOW CREATE TABLE non_metadata_alters;
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value1 String DEFAULT 'X';
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value2 Enum8('Hello' = 1, 'World' = 2, '!' = 3);
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value3 Date;
|
||||
|
||||
ALTER TABLE non_metadata_alters MODIFY COLUMN value4 UInt32;
|
||||
|
||||
ALTER TABLE non_metadata_alters ADD COLUMN value6 Decimal(3, 3);
|
||||
|
||||
SHOW CREATE TABLE non_metadata_alters;
|
||||
|
||||
DROP TABLE IF EXISTS non_metadata_alters;
|
Loading…
Reference in New Issue
Block a user