Update test

This commit is contained in:
Alexey Milovidov 2020-01-26 21:53:24 +03:00
parent 940804ee6d
commit 47178f1413

View File

@ -3,7 +3,7 @@ CREATE TABLE part_info (t DateTime) ENGINE = MergeTree PARTITION BY toDate(t) OR
INSERT INTO part_info VALUES (toDateTime('1970-10-01 00:00:01')), (toDateTime('1970-10-02 00:00:01')), (toDateTime('1970-10-03 00:00:01'));
SELECT name, is_frozen FROM system.parts WHERE `database` = currentDatabase() AND `table` = 'part_info';
SELECT 'freeze one';
ALTER TABLE part_info FREEZE PARTITION toDate('1970-10-02');
ALTER TABLE part_info FREEZE PARTITION '1970-10-02';
SELECT name, is_frozen FROM system.parts WHERE `database` = currentDatabase() AND `table` = 'part_info';
SELECT 'freeze all';
ALTER TABLE part_info FREEZE;