mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
23 lines
766 B
MySQL
23 lines
766 B
MySQL
|
DROP TABLE IF EXISTS default_table;
|
||
|
|
||
|
CREATE TABLE default_table (
|
||
|
key UInt64 DEFAULT 42,
|
||
|
value1 UInt64 MATERIALIZED key * key,
|
||
|
value2 ALIAS value1 * key
|
||
|
)
|
||
|
ENGINE = MergeTree()
|
||
|
ORDER BY tuple();
|
||
|
|
||
|
ALTER TABLE default_table MODIFY COLUMN key REMOVE MATERIALIZED; --{serverError 36}
|
||
|
ALTER TABLE default_table MODIFY COLUMN key REMOVE ALIAS; --{serverError 36}
|
||
|
|
||
|
ALTER TABLE default_table MODIFY COLUMN value1 REMOVE DEFAULT; --{serverError 36}
|
||
|
ALTER TABLE default_table MODIFY COLUMN value1 REMOVE ALIAS; --{serverError 36}
|
||
|
|
||
|
ALTER TABLE default_table MODIFY COLUMN value2 REMOVE DEFAULT; --{serverError 36}
|
||
|
ALTER TABLE default_table MODIFY COLUMN value2 REMOVE MATERIALIZED; --{serverError 36}
|
||
|
|
||
|
SHOW CREATE TABLE default_table;
|
||
|
|
||
|
DROP TABLE IF EXISTS default_table;
|