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

6 lines
362 B
SQL

drop table if exists tab;
create table tab (x UInt64, `arr.a` Array(UInt64), `arr.b` Array(UInt64)) engine = MergeTree order by x;
select x from tab array join arr prewhere x != 0 where arr; -- { serverError UNKNOWN_IDENTIFIER, 59 }
select x from tab array join arr prewhere arr where x != 0; -- { serverError UNKNOWN_IDENTIFIER, 59 }
drop table if exists tab;