mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test #797
This commit is contained in:
parent
7d69a3363f
commit
32f6adc5ed
@ -0,0 +1,20 @@
|
|||||||
|
USE test;
|
||||||
|
DROP TABLE IF EXISTS test;
|
||||||
|
|
||||||
|
CREATE TABLE test
|
||||||
|
(
|
||||||
|
dt Date,
|
||||||
|
id Int32,
|
||||||
|
key String,
|
||||||
|
data Nullable(Int8)
|
||||||
|
) ENGINE = MergeTree(dt, (id, key, dt), 8192);
|
||||||
|
|
||||||
|
INSERT INTO test (dt,id, key,data) VALUES (now(), 100, 'key', 100500);
|
||||||
|
|
||||||
|
alter table test drop column data;
|
||||||
|
alter table test add column data Nullable(Float64);
|
||||||
|
|
||||||
|
INSERT INTO test (dt,id, key,data) VALUES (now(), 100, 'key', 100500);
|
||||||
|
|
||||||
|
OPTIMIZE TABLE test;
|
||||||
|
DROP TABLE test;
|
Loading…
Reference in New Issue
Block a user