2023-10-17 23:36:14 +08:00
|
|
|
[discrete]
|
2023-06-06 00:38:55 +08:00
|
|
|
[[esql-limit]]
|
|
|
|
=== `LIMIT`
|
|
|
|
|
|
|
|
The `LIMIT` processing command enables you to limit the number of rows:
|
|
|
|
|
|
|
|
[source,esql]
|
|
|
|
----
|
|
|
|
include::{esql-specs}/docs.csv-spec[tag=limit]
|
|
|
|
----
|
2023-09-26 16:12:23 +08:00
|
|
|
|
|
|
|
If not specified, `LIMIT` defaults to `500`. A single query will not return
|
|
|
|
more than 10,000 rows, regardless of the `LIMIT` value.
|