ClickHouse/tests/queries/0_stateless/01045_array_zip.sql

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

10 lines
320 B
MySQL
Raw Normal View History

2019-12-11 14:15:43 +00:00
SELECT arrayZip(['a', 'b', 'c'], ['d', 'e', 'f']);
SELECT arrayZip(['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']);
2024-09-13 02:50:50 +00:00
SELECT arrayZip();
2019-12-11 14:15:43 +00:00
SELECT arrayZip('a', 'b', 'c'); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
2019-12-11 14:15:43 +00:00
SELECT arrayZip(['a', 'b', 'c'], ['d', 'e', 'f', 'd']); -- { serverError SIZES_OF_ARRAYS_DONT_MATCH }