This commit is contained in:
Alexey Milovidov 2018-04-06 02:00:19 +03:00
parent f66d2fb780
commit 4c2adf1f30
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
2067-01-12 100 key \N
2067-01-12 100 key 100500
2067-01-12 100 key \N
2067-01-12 100 key 100500
2000-01-01 100 key \N
2000-01-01 100 key 100500
2000-01-01 100 key \N
2000-01-01 100 key 100500

View File

@ -9,12 +9,12 @@ CREATE TABLE test
data Nullable(Int8)
) ENGINE = MergeTree(dt, (id, key, dt), 8192);
INSERT INTO test (dt,id, key,data) VALUES (now(), 100, 'key', 100500);
INSERT INTO test (dt,id, key,data) VALUES ('2000-01-01', 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);
INSERT INTO test (dt,id, key,data) VALUES ('2000-01-01', 100, 'key', 100500);
SELECT * FROM test ORDER BY data NULLS FIRST;
OPTIMIZE TABLE test;