boluor opened a new issue, #3887:
URL: https://github.com/apache/doris-website/issues/3887

   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:
   
   ```sql
   select array_map(x->cast(x as string), c_array1) from 
test_array_map_function;
   ```
   ```text
   +-----------------+-------------------------------------------------------+
   | 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:
   ```sql
   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.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to