ClickHouse/tests/queries/0_stateless/02010_array_index_bad_cast.sql
2024-01-30 16:39:52 +00:00

4 lines
318 B
SQL

-- This query throws exception about uncomparable data types (but at least it does not introduce bad cast in code).
SET allow_suspicious_low_cardinality_types=1;
SELECT has(materialize(CAST(['2021-07-14'] AS Array(LowCardinality(Nullable(DateTime))))), materialize('2021-07-14'::DateTime64(7))); -- { serverError 44 }