2019-06-03 17:36:27 +00:00
|
|
|
DROP TABLE IF EXISTS alter_00121;
|
|
|
|
CREATE TABLE alter_00121 (d Date, x UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/alter_00121', 'r1', d, (d), 8192);
|
2015-02-01 03:49:36 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
INSERT INTO alter_00121 VALUES ('2014-01-01', 1);
|
|
|
|
ALTER TABLE alter_00121 DROP COLUMN x;
|
2015-02-01 03:49:36 +00:00
|
|
|
|
2020-03-20 00:07:52 +00:00
|
|
|
DROP TABLE alter_00121 NO DELAY;
|
|
|
|
SELECT sleep(1) FORMAT Null;
|
2015-02-01 03:49:36 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
CREATE TABLE alter_00121 (d Date) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/alter_00121', 'r1', d, (d), 8192);
|
2015-02-01 03:49:36 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
INSERT INTO alter_00121 VALUES ('2014-01-01');
|
|
|
|
SELECT * FROM alter_00121 ORDER BY d;
|
2015-02-01 03:49:36 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
ALTER TABLE alter_00121 ADD COLUMN x UInt8;
|
2015-02-01 03:49:36 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
INSERT INTO alter_00121 VALUES ('2014-02-01', 1);
|
|
|
|
SELECT * FROM alter_00121 ORDER BY d;
|
2015-02-01 03:49:36 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
ALTER TABLE alter_00121 DROP COLUMN x;
|
|
|
|
SELECT * FROM alter_00121 ORDER BY d;
|
2015-02-01 03:49:36 +00:00
|
|
|
|
2020-03-20 00:07:52 +00:00
|
|
|
DROP TABLE alter_00121 NO DELAY;
|
|
|
|
SELECT sleep(1) FORMAT Null;
|