From cfbcfd038c24e8db093e130e52051f9a08a0772a Mon Sep 17 00:00:00 2001 From: Soeren Wolfers Date: Thu, 28 Nov 2024 19:25:30 +0000 Subject: [PATCH 1/2] Update aggregates.md --- docs/sql/functions/aggregates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sql/functions/aggregates.md b/docs/sql/functions/aggregates.md index 3044ca7d3c9..afba7a97db8 100644 --- a/docs/sql/functions/aggregates.md +++ b/docs/sql/functions/aggregates.md @@ -550,7 +550,7 @@ They all ignore `NULL` values (in the case of a single input column `x`), or pai
-| **Description** | The most frequent value. | +| **Description** | The most frequent value. This function is [affected by ordering](#order-by-clause-in-aggregate-functions). | | **Formula** | - | | **Alias(es)** | - | From 6c5202c5894a07a0fb2b1edd65e0d391d619e6dd Mon Sep 17 00:00:00 2001 From: Soeren Wolfers Date: Thu, 28 Nov 2024 19:30:33 +0000 Subject: [PATCH 2/2] Update aggregates.md --- docs/sql/functions/aggregates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sql/functions/aggregates.md b/docs/sql/functions/aggregates.md index afba7a97db8..9ac787977e7 100644 --- a/docs/sql/functions/aggregates.md +++ b/docs/sql/functions/aggregates.md @@ -464,7 +464,7 @@ They all ignore `NULL` values (in the case of a single input column `x`), or pai | [`kurtosis(x)`](#kurtosisx) | The excess kurtosis (Fisher's definition) with bias correction according to the sample size. | | [`mad(x)`](#madx) | The median absolute deviation. Temporal types return a positive `INTERVAL`. | | [`median(x)`](#medianx) | The middle value of the set. For even value counts, quantitative values are averaged and ordinal values return the lower value. | -| [`mode(x)`](#modex)| The most frequent value. | +| [`mode(x)`](#modex)| The most frequent value. This function is [affected by ordering](#order-by-clause-in-aggregate-functions). | | [`quantile_cont(x, pos)`](#quantile_contx-pos) | The interpolated `pos`-quantile of `x` for `0 <= pos <= 1`, i.e., orders the values of `x` and returns the `pos * (n_nonnull_values - 1)`th (zero-indexed) element (or an interpolation between the adjacent elements if the index is not an integer). If `pos` is a `LIST` of `FLOAT`s, then the result is a `LIST` of the corresponding interpolated quantiles. | | [`quantile_disc(x, pos)`](#quantile_discx-pos) | The discrete `pos`-quantile of `x` for `0 <= pos <= 1`, i.e., orders the values of `x` and returns the `greatest(ceil(pos * n_nonnull_values) - 1, 0)`th (zero-indexed) element. If `pos` is a `LIST` of `FLOAT`s, then the result is a `LIST` of the corresponding discrete quantiles. | | [`regr_avgx(y, x)`](#regr_avgxy-x) | The average of the independent variable for non-`NULL` pairs, where x is the independent variable and y is the dependent variable. |