ClickHouse/tests/queries/0_stateless/02353_partition_prune_nullable_key.sql
2022-07-07 16:02:38 +08:00

10 lines
227 B
SQL

drop table if exists n;
create table n(nc Nullable(int)) engine = MergeTree order by (tuple()) partition by (nc) settings allow_nullable_key = 1;
insert into n values (null);
select * from n where nc is null;
drop table n;