mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
21 lines
651 B
SQL
21 lines
651 B
SQL
SET mutations_sync = 2;
|
|
|
|
DROP TABLE IF EXISTS t_projections_lwd;
|
|
|
|
CREATE TABLE t_projections_lwd (a UInt32, b UInt32, PROJECTION p (SELECT * ORDER BY b)) ENGINE = MergeTree ORDER BY a;
|
|
|
|
INSERT INTO t_projections_lwd SELECT number, number FROM numbers(100);
|
|
|
|
-- LWD does not work, as expected
|
|
DELETE FROM t_projections_lwd WHERE a = 1; -- { serverError BAD_ARGUMENTS }
|
|
KILL MUTATION WHERE database = currentDatabase() AND table = 't_projections_lwd' SYNC FORMAT Null;
|
|
|
|
-- drop projection
|
|
ALTER TABLE t_projections_lwd DROP projection p;
|
|
|
|
DELETE FROM t_projections_lwd WHERE a = 2;
|
|
|
|
SELECT count() FROM t_projections_lwd;
|
|
|
|
DROP TABLE t_projections_lwd;
|