mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
23 lines
766 B
SQL
23 lines
766 B
SQL
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;
|