diff --git a/documentation/reference/function/aggregation.md b/documentation/reference/function/aggregation.md index 2919641f8..7718636a8 100644 --- a/documentation/reference/function/aggregation.md +++ b/documentation/reference/function/aggregation.md @@ -493,8 +493,8 @@ SELECT payment_type, covar_samp(price, quantity) FROM transactions GROUP BY paym - `first(column_name)` - returns the first value of a column. Supported column datatype: `double`, `float`, `integer`, `IPv4`, `character`, -`short`, `byte`, `timestamp`, `date`, `long`, `geohash`, `symbol`, `varchar` and -`uuid`. +`short`, `byte`, `timestamp`, `date`, `long`, `geohash`, `symbol`, `varchar`, +`uuid` and `array`. If a table has a [designated timestamp](/docs/concept/designated-timestamp/), then the first row is always the row with the lowest timestamp (oldest). For a table @@ -655,8 +655,8 @@ FROM (SELECT rnd_double() a FROM long_sequence(100)); - `last(column_name)` - returns the last value of a column. Supported column datatype: `double`, `float`, `integer`, `IPv4`, `character`, -`short`, `byte`, `timestamp`, `date`, `long`, `geohash`, `symbol`, `varchar` and -`uuid`. +`short`, `byte`, `timestamp`, `date`, `long`, `geohash`, `symbol`, `varchar`, +`uuid` and `array`. If a table has a [designated timestamp](/docs/concept/designated-timestamp/), the last row is always the one with the highest (latest) timestamp.