diff --git a/tests/queries/0_stateless/01674_where_prewhere_array_crash.reference b/tests/queries/0_stateless/01674_where_prewhere_array_crash.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/queries/0_stateless/01674_where_prewhere_array_crash.sql b/tests/queries/0_stateless/01674_where_prewhere_array_crash.sql new file mode 100644 index 00000000000..d6eef000b36 --- /dev/null +++ b/tests/queries/0_stateless/01674_where_prewhere_array_crash.sql @@ -0,0 +1,5 @@ +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 47; } +select x from tab array join arr prewhere arr where x != 0; -- { serverError 47; } +drop table if exists tab;