2024-10-31 12:04:24 +00:00
|
|
|
DROP TABLE IF EXISTS t;
|
|
|
|
DROP TABLE IF EXISTS t2;
|
|
|
|
|
|
|
|
CREATE TABLE t (x int) ENGINE = MergeTree() ORDER BY ();
|
|
|
|
|
2024-11-08 09:45:51 +00:00
|
|
|
DELETE FROM t WHERE y in (SELECT x FROM t); -- { serverError UNKNOWN_IDENTIFIER }
|
|
|
|
DELETE FROM t WHERE x in (SELECT y FROM t); -- { serverError UNKNOWN_IDENTIFIER }
|
|
|
|
DELETE FROM t WHERE x IN (SELECT * FROM t2); -- { serverError UNKNOWN_TABLE }
|
|
|
|
ALTER TABLE t DELETE WHERE x in (SELECT y FROM t); -- { serverError UNKNOWN_IDENTIFIER }
|
|
|
|
ALTER TABLE t UPDATE x = 1 WHERE x IN (SELECT y FROM t); -- { serverError UNKNOWN_IDENTIFIER }
|
2024-10-31 12:04:24 +00:00
|
|
|
|
2024-11-01 11:06:49 +00:00
|
|
|
DELETE FROM t WHERE x IN (SELECT foo FROM bar) SETTINGS validate_mutation_query = 0;
|
|
|
|
|
2024-10-31 12:04:24 +00:00
|
|
|
ALTER TABLE t ADD COLUMN y int;
|
|
|
|
DELETE FROM t WHERE y in (SELECT y FROM t);
|
|
|
|
|
|
|
|
CREATE TABLE t2 (x int) ENGINE = MergeTree() ORDER BY ();
|
|
|
|
DELETE FROM t WHERE x IN (SELECT * FROM t2);
|
|
|
|
|
|
|
|
DROP TABLE t;
|
|
|
|
DROP TABLE t2;
|