mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
35 lines
1.7 KiB
SQL
35 lines
1.7 KiB
SQL
-- Tags: replica
|
|
|
|
DROP TABLE IF EXISTS t_ttl_non_deterministic;
|
|
|
|
CREATE TABLE t_ttl_non_deterministic(A Int64)
|
|
ENGINE = MergeTree ORDER BY A TTL now() + toIntervalMonth(1); -- {serverError BAD_ARGUMENTS}
|
|
|
|
CREATE TABLE t_ttl_non_deterministic(A Int64)
|
|
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/ttl1', '1') ORDER BY A TTL now() + toIntervalMonth(1); -- {serverError BAD_ARGUMENTS}
|
|
|
|
|
|
CREATE TABLE t_ttl_non_deterministic(A Int64) ENGINE = MergeTree ORDER BY A;
|
|
ALTER TABLE t_ttl_non_deterministic MODIFY TTL now() + toIntervalMonth(1); -- {serverError BAD_ARGUMENTS}
|
|
DROP TABLE t_ttl_non_deterministic;
|
|
|
|
CREATE TABLE t_ttl_non_deterministic(A Int64) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/ttl2', '1') ORDER BY A;
|
|
ALTER TABLE t_ttl_non_deterministic MODIFY TTL now() + toIntervalMonth(1); -- {serverError BAD_ARGUMENTS}
|
|
DROP TABLE t_ttl_non_deterministic;
|
|
|
|
|
|
CREATE TABLE t_ttl_non_deterministic(A Int64, B Int64 TTL now() + toIntervalMonth(1))
|
|
ENGINE = MergeTree ORDER BY A; -- {serverError BAD_ARGUMENTS}
|
|
|
|
CREATE TABLE t_ttl_non_deterministic(A Int64, B Int64 TTL now() + toIntervalMonth(1))
|
|
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/ttl3', '1') ORDER BY A; -- {serverError BAD_ARGUMENTS}
|
|
|
|
|
|
CREATE TABLE t_ttl_non_deterministic(A Int64, B Int64) ENGINE = MergeTree ORDER BY A;
|
|
ALTER TABLE t_ttl_non_deterministic MODIFY COLUMN B Int64 TTL now() + toIntervalMonth(1); -- {serverError BAD_ARGUMENTS}
|
|
DROP TABLE t_ttl_non_deterministic;
|
|
|
|
CREATE TABLE t_ttl_non_deterministic(A Int64, B Int64) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/ttl4', '1') ORDER BY A;
|
|
ALTER TABLE t_ttl_non_deterministic MODIFY COLUMN B Int64 TTL now() + toIntervalMonth(1); -- {serverError BAD_ARGUMENTS}
|
|
DROP TABLE t_ttl_non_deterministic;
|