From cd7368dc6de0e633328d2afad513bf69b3eb5b0a Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Mon, 1 Apr 2019 16:29:20 +0300 Subject: [PATCH] Added tests for arrayIntersect. --- dbms/tests/queries/00932_array_intersect_bug.reference | 4 ++++ dbms/tests/queries/00932_array_intersect_bug.sql | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 dbms/tests/queries/00932_array_intersect_bug.reference create mode 100644 dbms/tests/queries/00932_array_intersect_bug.sql diff --git a/dbms/tests/queries/00932_array_intersect_bug.reference b/dbms/tests/queries/00932_array_intersect_bug.reference new file mode 100644 index 00000000000..23b66e9033d --- /dev/null +++ b/dbms/tests/queries/00932_array_intersect_bug.reference @@ -0,0 +1,4 @@ +['a'] +[] +[1] +[] diff --git a/dbms/tests/queries/00932_array_intersect_bug.sql b/dbms/tests/queries/00932_array_intersect_bug.sql new file mode 100644 index 00000000000..4c3c199596d --- /dev/null +++ b/dbms/tests/queries/00932_array_intersect_bug.sql @@ -0,0 +1,5 @@ +SELECT arrayIntersect(['a', 'b', 'c'], ['a', 'a']); +SELECT arrayIntersect([1, 1], [2, 2]); +SELECT arrayIntersect([1, 1], [1, 2]); +SELECT arrayIntersect([1, 1, 1], [3], [2, 2, 2]); +