Arguments
The syntax is:| Name | Type | Default | Required | Description |
|---|---|---|---|---|
value | BIGINT | DOUBLE PRECISION | TIMESTAMPTZ | - | ✔ | The values passed into the aggregate |
data | ANYELEMENT | - | ✔ | The data associated with a particular value |
capacity | BIGINT | - | ✔ | The number of values to retain. |
Returns
| Column | Type | Description |
|---|---|---|
| max_n_by | MaxNBy | The compiled aggregate. Note that the exact type will be MaxByInts, MaxByFloats, or MaxByTimes depending on the input type |