% This is generated by ESQL's BucketTests. Do not edit it. See docs/reference/query-languages/esql/README.md for how to regenerate it.

## Parameters

`field`
:   Numeric or date expression from which to derive buckets.

`buckets`
:   Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted.

`from`
:   Start of the range. Can be a number, a date or a date expressed as a string.

`to`
:   End of the range. Can be a number, a date or a date expressed as a string.

