From 3d0f878535b530620e061e750178ccbb0fc18585 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 28 Jan 2021 12:44:12 +0300 Subject: [PATCH] Added test. --- .../0_stateless/01674_where_prewhere_array_crash.reference | 0 .../queries/0_stateless/01674_where_prewhere_array_crash.sql | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 tests/queries/0_stateless/01674_where_prewhere_array_crash.reference create mode 100644 tests/queries/0_stateless/01674_where_prewhere_array_crash.sql 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;