Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ClickHouse launches Claude-powered Agents and House Mates partner program at Open House 2026 Read more →
返回一个包含前 N 个元素并按升序排列的数组。
groupArraySorted(N)(column)
N
UInt64
column
Any
Array
SELECT groupArraySorted(10)(number) FROM numbers(100);
┌─groupArraySorted(10)(number)─┐ │ [0,1,2,3,4,5,6,7,8,9] │ └──────────────────────────────┘
SELECT groupArraySorted(5)(str) FROM (SELECT toString(number) AS str FROM numbers(5));
┌─groupArraySorted(5)(str)─┐ │ ['0','1','2','3','4'] │ └──────────────────────────┘
此页面对您有帮助吗?