Skip to content

Commit

Permalink
Merge pull request ClickHouse#34721 from ContentSquare/quantile_docum…
Browse files Browse the repository at this point in the history
…entation_empty_sequence

Document behaviour of quantile variants for empty numeric sequences
  • Loading branch information
kitaisreal authored Feb 21, 2022
2 parents 174257d + a61f6dd commit c15b5c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This function applies [reservoir sampling](https://en.wikipedia.org/wiki/Reservo

When using multiple `quantile*` functions with different levels in a query, the internal states are not combined (that is, the query works less efficiently than it could). In this case, use the [quantiles](../../../sql-reference/aggregate-functions/reference/quantiles.md#quantiles) function.

Note that for an empty numeric sequence, `quantile` will return NaN, but its `quantile*` variants will return either NaN or a default value for the sequence type, depending on the variant.

**Syntax**

``` sql
Expand Down

0 comments on commit c15b5c2

Please sign in to comment.