mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
13 lines
589 B
SQL
13 lines
589 B
SQL
set allow_suspicious_low_cardinality_types = 1;
|
|
SELECT CAST(NULL, 'LowCardinality(Nullable(Int8))');
|
|
|
|
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;
|
|
|