Update grouparray.md

This commit is contained in:
Alexey Milovidov 2022-05-16 04:28:39 +03:00 committed by GitHub
parent 97a144d8ed
commit 7b9d81af84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ The second version (with the `max_size` parameter) limits the size of the result
In some cases, you can still rely on the order of execution. This applies to cases when `SELECT` comes from a subquery that uses `ORDER BY`.
**Example**
show default.ck table result.
``` text
@ -29,7 +30,7 @@ show default.ck table result.
Query:
``` sql
select id, groupArray(10)(name) from(select id,name from default.ck group by id,name order by id) group by id;
select id, groupArray(10)(name) from (select id, name from default.ck group by id, name order by id) group by id;
```
Result: