ClickHouse/tests/queries/0_stateless/02480_suspicious_lowcard_in_key.sql
2022-11-27 18:40:26 +08:00

12 lines
288 B
SQL

set allow_suspicious_low_cardinality_types=1;
drop table if exists test;
create table test (val LowCardinality(Float32)) engine MergeTree order by val;
insert into test values (nan);
select count() from test where toUInt64(val) = -1; -- { serverError 70 }
drop table if exists test;