mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Add test alter_scalar_circular_deadlock
This commit is contained in:
parent
ed0bb2cec2
commit
b720b244ef
@ -0,0 +1,2 @@
|
||||
1
|
||||
1
|
@ -0,0 +1,17 @@
|
||||
DROP TABLE IF EXISTS foo;
|
||||
|
||||
CREATE TABLE foo (ts DateTime, x UInt64)
|
||||
ENGINE = MergeTree PARTITION BY toYYYYMMDD(ts)
|
||||
ORDER BY (ts);
|
||||
|
||||
INSERT INTO foo (ts, x) SELECT toDateTime('2020-01-01 00:05:00'), number from system.numbers_mt LIMIT 10;
|
||||
|
||||
SET mutations_sync = 1;
|
||||
|
||||
ALTER TABLE foo UPDATE x = 1 WHERE x = (SELECT x from foo WHERE x = 4);
|
||||
|
||||
SELECT sum(x) == 42 FROM foo;
|
||||
|
||||
ALTER TABLE foo UPDATE x = 1 WHERE x IN (SELECT x FROM foo WHERE x != 0);
|
||||
|
||||
SELECT sum(x) == 9 FROM foo;
|
Loading…
Reference in New Issue
Block a user