2025-06-21 03:42:37 +08:00
|
|
|
|
% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.
|
2025-03-13 21:16:46 +08:00
|
|
|
|
|
2025-05-30 00:41:58 +08:00
|
|
|
|
::::{tip}
|
|
|
|
|
Use [`TOP`](/reference/query-languages/esql/functions-operators/aggregation-functions.md#esql-top)
|
|
|
|
|
if you need to keep repeated values.
|
2025-05-22 21:50:29 +08:00
|
|
|
|
::::
|
2025-03-13 21:16:46 +08:00
|
|
|
|
::::{warning}
|
|
|
|
|
This can use a significant amount of memory and ES|QL doesn’t yet
|
|
|
|
|
grow aggregations beyond memory. So this aggregation will work until
|
|
|
|
|
it is used to collect more values than can fit into memory. Once it
|
|
|
|
|
collects too many values it will fail the query with
|
|
|
|
|
a [Circuit Breaker Error](docs-content://troubleshoot/elasticsearch/circuit-breaker-errors.md).
|
|
|
|
|
::::
|