2023-07-25 14:21:12 +00:00
|
|
|
SET mutations_sync = 2;
|
|
|
|
|
2023-07-24 09:52:49 +00:00
|
|
|
DROP TABLE IF EXISTS t_projections_lwd;
|
|
|
|
|
2023-07-25 14:21:12 +00:00
|
|
|
CREATE TABLE t_projections_lwd (a UInt32, b UInt32, PROJECTION p (SELECT * ORDER BY b)) ENGINE = MergeTree ORDER BY a;
|
2023-07-24 09:52:49 +00:00
|
|
|
|
|
|
|
INSERT INTO t_projections_lwd SELECT number, number FROM numbers(100);
|
|
|
|
|
|
|
|
-- LWD does not work, as expected
|
2023-07-25 14:21:12 +00:00
|
|
|
DELETE FROM t_projections_lwd WHERE a = 1; -- { serverError BAD_ARGUMENTS }
|
2023-07-24 09:52:49 +00:00
|
|
|
KILL MUTATION WHERE database = currentDatabase() AND table = 't_projections_lwd' SYNC FORMAT Null;
|
|
|
|
|
|
|
|
-- drop projection
|
2023-07-25 14:21:12 +00:00
|
|
|
ALTER TABLE t_projections_lwd DROP projection p;
|
2023-07-24 09:52:49 +00:00
|
|
|
|
|
|
|
DELETE FROM t_projections_lwd WHERE a = 2;
|
|
|
|
|
|
|
|
SELECT count() FROM t_projections_lwd;
|
|
|
|
|
|
|
|
DROP TABLE t_projections_lwd;
|