mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
13 lines
453 B
SQL
13 lines
453 B
SQL
drop table if exists test;
|
|
create table test (x UInt64) engine=Memory();
|
|
set insert_null_as_default=1;
|
|
insert into test select number % 2 ? NULL : 42 as x from numbers(2);
|
|
select * from test order by x;
|
|
drop table test;
|
|
|
|
create table test (x LowCardinality(String) default 'Hello') engine=Memory();
|
|
insert into test select (number % 2 ? NULL : 'World')::LowCardinality(Nullable(String)) from numbers(2);
|
|
select * from test order by x;
|
|
drop table test;
|
|
|