ClickHouse/tests/queries/0_stateless/02480_suspicious_lowcard_in_key.sql
2024-05-30 19:41:08 +00:00

12 lines
305 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 CANNOT_CONVERT_TYPE }
drop table if exists test;