2019-05-29 16:37:55 +00:00
|
|
|
set allow_suspicious_low_cardinality_types = 1;
|
2018-09-20 13:53:29 +00:00
|
|
|
SELECT CAST(NULL, 'LowCardinality(Nullable(Int8))');
|
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
drop table if exists lc_null_int8_defnull;
|
|
|
|
CREATE TABLE lc_null_int8_defnull (val LowCardinality(Nullable(Int8)) DEFAULT NULL) ENGINE = MergeTree order by tuple();
|
|
|
|
insert into lc_null_int8_defnull values (1);
|
|
|
|
select * from lc_null_int8_defnull values;
|
|
|
|
alter table lc_null_int8_defnull add column val2 LowCardinality(Nullable(Int8)) DEFAULT NULL;
|
|
|
|
insert into lc_null_int8_defnull values (2, 3);
|
|
|
|
select * from lc_null_int8_defnull order by val;
|
|
|
|
drop table if exists lc_null_int8_defnull;
|
2018-09-20 13:53:29 +00:00
|
|
|
|