ClickHouse/tests/queries/0_stateless/01522_validate_alter_default.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
377 B
MySQL
Raw Normal View History

2020-10-12 11:02:35 +00:00
DROP TABLE IF EXISTS table2;
CREATE TABLE table2
(
EventDate Date,
Id Int32,
Value Int32
)
Engine = MergeTree()
PARTITION BY toYYYYMM(EventDate)
ORDER BY Id;
ALTER TABLE table2 MODIFY COLUMN `Value` DEFAULT 'some_string'; --{serverError 6}
ALTER TABLE table2 ADD COLUMN `Value2` DEFAULT 'some_string'; --{serverError 36}
DROP TABLE IF EXISTS table2;