mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 23:10:50 +00:00
12 lines
581 B
SQL
12 lines
581 B
SQL
SELECT CAST(NULL, 'LowCardinality(Nullable(Int8))');
|
|
|
|
drop table if exists test.lc_null_int8_defnull;
|
|
CREATE TABLE test.lc_null_int8_defnull (val LowCardinality(Nullable(Int8)) DEFAULT NULL) ENGINE = MergeTree order by tuple();
|
|
insert into test.lc_null_int8_defnull values (1);
|
|
select * from test.lc_null_int8_defnull values;
|
|
alter table test.lc_null_int8_defnull add column val2 LowCardinality(Nullable(Int8)) DEFAULT NULL;
|
|
insert into test.lc_null_int8_defnull values (2, 3);
|
|
select * from test.lc_null_int8_defnull order by val;
|
|
drop table if exists test.lc_null_int8_defnull;
|
|
|