mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
54013009d3
Initial implementation was different and it changed the entire ReplicatedMergeTreeSink::commitPart() which change history provided by git blame. Then RetriesControl.retryLoop() was introduced later which significantly reduces the diff since it's like while() used before. So, check outing the current version will keep more original history in git blame, which is useful here
27 lines
918 B
SQL
27 lines
918 B
SQL
-- Tags: zookeeper, no-replicated-database
|
|
-- Tag no-replicated-database: Old syntax is not allowed
|
|
|
|
DROP TABLE IF EXISTS alter_00121 SYNC;
|
|
set allow_deprecated_syntax_for_merge_tree=1;
|
|
CREATE TABLE alter_00121 (d Date, x UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/test/alter_00121/t1', 'r1', d, (d), 8192);
|
|
|
|
INSERT INTO alter_00121 VALUES ('2014-01-01', 1);
|
|
ALTER TABLE alter_00121 DROP COLUMN x;
|
|
|
|
DROP TABLE alter_00121 SYNC;
|
|
|
|
CREATE TABLE alter_00121 (d Date) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/test/alter_00121/t2', 'r1', d, (d), 8192);
|
|
|
|
INSERT INTO alter_00121 VALUES ('2014-01-01');
|
|
SELECT * FROM alter_00121 ORDER BY d;
|
|
|
|
ALTER TABLE alter_00121 ADD COLUMN x UInt8;
|
|
|
|
INSERT INTO alter_00121 VALUES ('2014-02-01', 1);
|
|
SELECT * FROM alter_00121 ORDER BY d;
|
|
|
|
ALTER TABLE alter_00121 DROP COLUMN x;
|
|
SELECT * FROM alter_00121 ORDER BY d;
|
|
|
|
DROP TABLE alter_00121 SYNC;
|