On the ARRAY_MAP page (scalar-functions/array-functions/array-map.md, version-3.x and version-2.1), one example does not match its own output:
select array_map(x->cast(x as string), c_array1) from test_array_map_function;
+-----------------+-------------------------------------------------------+
| c_array1 | array_map([x] -> CAST(x(0) AS CHARACTER), `c_array1`) |
+-----------------+-------------------------------------------------------+
| [1, 2, 3, 4, 5] | [1, 2, 3, 4, 5] |
...
The SQL selects a single column (the array_map(...) result), but the output table has two columns (c_array1 | array_map(...)). Running the query as written returns only the array_map(...) column.
Suggested fix — align the SQL with the shown output:
select c_array1, array_map(x->cast(x as string), c_array1) from test_array_map_function;
(Also note test_array_map_function is never defined on the page; the missing-setup fix for the other array pages is being handled in the Line-B setup PRs, but this page is left out pending the SQL correction above.)
On the
ARRAY_MAPpage (scalar-functions/array-functions/array-map.md, version-3.x and version-2.1), one example does not match its own output:The SQL selects a single column (the
array_map(...)result), but the output table has two columns (c_array1 | array_map(...)). Running the query as written returns only thearray_map(...)column.Suggested fix — align the SQL with the shown output:
(Also note
test_array_map_functionis never defined on the page; the missing-setup fix for the other array pages is being handled in the Line-B setup PRs, but this page is left out pending the SQL correction above.)