Added a test for #6549

This commit is contained in:
Alexey Milovidov 2020-06-20 10:36:17 +03:00
parent ad672f7ce2
commit a7cc800138
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Hello, world 1
Hello, world 1
Goodbye 1

View File

@ -0,0 +1,13 @@
DROP TABLE IF EXISTS mt;
CREATE TABLE mt (x String, y UInt64, INDEX idx (y) TYPE minmax GRANULARITY 1) ENGINE = MergeTree ORDER BY y;
INSERT INTO mt VALUES ('Hello, world', 1);
SELECT * FROM mt;
ALTER TABLE mt FREEZE;
SELECT * FROM mt;
SET mutations_sync = 1;
ALTER TABLE mt UPDATE x = 'Goodbye' WHERE y = 1;
SELECT * FROM mt;
DROP TABLE mt;