mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
16 lines
789 B
SQL
16 lines
789 B
SQL
select arrayIntersect([], []);
|
|
select arrayIntersect([1], []);
|
|
select arrayIntersect([1], [1]);
|
|
select arrayIntersect([1, 2], [1, 3], [2, 3]);
|
|
select arrayIntersect([1, 2], [1, 3], [1, 4]);
|
|
select arrayIntersect([1, -1], [1]);
|
|
select arrayIntersect([1, -1], [Null, 1]);
|
|
select arrayIntersect([1, -1, Null], [Null, 1]);
|
|
select arrayIntersect(cast([1, 2] as Array(Nullable(Int8))), [1, 3]);
|
|
select arrayIntersect(CAST([1, -1] AS Array(Nullable(Int8))), [NULL, 1]);
|
|
select arrayIntersect([[1, 2], [1, 1]], [[2, 1], [1, 1]]);
|
|
select arrayIntersect([[1, 2, Null], [1, 1]], [[-2, 1], [1, 1]]);
|
|
select arrayIntersect([(1, ['a', 'b']), (Null, ['c'])], [(2, ['c', Null]), (1, ['a', 'b'])]);
|
|
select toTypeName(arrayIntersect([(1, ['a', 'b']), (Null, ['c'])], [(2, ['c', Null]), (1, ['a', 'b'])]));
|
|
|