ClickHouse/tests/queries/0_stateless/01652_ttl_old_syntax.sql

8 lines
270 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS ttl_old_syntax;
2022-06-23 10:58:34 +00:00
set allow_deprecated_syntax_for_merge_tree=1;
CREATE TABLE ttl_old_syntax (d Date, i Int) ENGINE = MergeTree(d, i, 8291);
ALTER TABLE ttl_old_syntax MODIFY TTL toDate('2020-01-01'); -- { serverError 36 }
DROP TABLE ttl_old_syntax;