ClickHouse/tests/queries/0_stateless/02706_array_map_tuples.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
428 B
MySQL
Raw Normal View History

2023-04-03 13:43:11 +00:00
WITH [(1, 2)] AS arr1 SELECT arrayMap((x, y) -> (y, x), arr1);
WITH [(1, 2)] AS arr1 SELECT arrayMap(x -> x.1, arr1);
WITH [(1, 2)] AS arr1, [(3, 4)] AS arr2 SELECT arrayMap((x, y) -> (y.1, x.2), arr1, arr2);
WITH [(1, 2)] AS arr1 SELECT arrayMap((x, y, z) -> (y, x, z), arr1); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
WITH [1, 2] AS arr1 SELECT arrayMap((x, y) -> (y, x), arr1); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }