ClickHouse/tests/queries/0_stateless/02908_alter_column_alias.sql

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

9 lines
206 B
MySQL
Raw Normal View History

2023-11-09 07:07:41 +00:00
CREATE TABLE t (
c0 DateTime,
c1 DateTime,
a DateTime alias toStartOfFifteenMinutes(c0)
) ENGINE = MergeTree() ORDER BY tuple();
ALTER TABLE t MODIFY COLUMN a DateTime ALIAS c1;
SHOW CREATE t;