ClickHouse/tests/queries/0_stateless/03230_array_zip_unaligned.sql

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

16 lines
532 B
MySQL
Raw Normal View History

2024-09-02 03:55:41 +00:00
SELECT arrayZipUnaligned(['a', 'b', 'c'], ['d', 'e', 'f']) as x, toTypeName(x);
SELECT arrayZipUnaligned(['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']);
2024-09-13 02:50:50 +00:00
SELECT arrayZipUnaligned();
2024-09-02 03:55:41 +00:00
SELECT arrayZipUnaligned('a', 'b', 'c'); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT arrayZipUnaligned(['a', 'b', 'c'], ['d', 'e', 'f', 'g']);
SELECT arrayZipUnaligned(['a'], [1, 2, 3]);
SELECT arrayZipUnaligned(['a', 'b', 'c'], [1, 2], [1.1, 2.2, 3.3, 4.4]);
2024-09-03 03:59:54 +00:00
SELECT arrayZipUnaligned(materialize(['g', 'h', 'i'])) from numbers(3);