ClickHouse/tests/queries/0_stateless/02010_array_index_bad_cast.sql
2024-07-04 17:19:35 +00:00

5 lines
434 B
SQL

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)));
SELECT has(materialize(CAST(['2021-07-14'] AS Array(LowCardinality(Nullable(DateTime))))), materialize('2021-07-14 00:00:01'::DateTime64(7)));
SELECT has(materialize(CAST(['2021-07-14'] AS Array(LowCardinality(Nullable(DateTime))))), materialize(NULL));