ClickHouse/dbms/tests/queries/0_stateless/00932_array_intersect_bug.sql
2019-04-02 14:24:11 +03:00

10 lines
395 B
SQL

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]);
SELECT arrayIntersect([1, 2], [1, 2], [2]);
SELECT arrayIntersect([1, 1], [2, 1], [2, 2], [1]);
SELECT arrayIntersect([]);
SELECT arrayIntersect([1, 2, 3]);
SELECT arrayIntersect([1, 1], [2, 1], [2, 2], [2, 2, 2]);