mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-20 05:05:38 +00:00
15 lines
454 B
SQL
15 lines
454 B
SQL
DROP TABLE IF EXISTS kek;
|
|
DROP TABLE IF EXISTS kekv;
|
|
|
|
CREATE TABLE kek (a UInt32) ENGINE = MergeTree ORDER BY a;
|
|
CREATE MATERIALIZED VIEW kekv ENGINE = MergeTree ORDER BY tuple() AS SELECT * FROM kek;
|
|
|
|
INSERT INTO kek VALUES (1);
|
|
DELETE FROM kekv WHERE a = 1; -- { serverError BAD_ARGUMENTS}
|
|
|
|
SET allow_experimental_lightweight_delete=1;
|
|
DELETE FROM kekv WHERE a = 1; -- { serverError BAD_ARGUMENTS}
|
|
|
|
DROP TABLE IF EXISTS kek;
|
|
DROP TABLE IF EXISTS kekv;
|