From f324204514a5bbeaf106ef986a1625833aaa2be4 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sat, 8 Oct 2022 19:03:30 +0200 Subject: [PATCH] HHH-15589 document var_xxx() and stddev_xxx() --- .../chapters/query/hql/QueryLanguage.adoc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc b/documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc index 10d280759f..d5916072d3 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc @@ -2008,13 +2008,15 @@ Aggregate functions are special functions that reduce the size of the result set The standard aggregate functions defined in both ANSI SQL and JPQL are: |=== -| Aggregate function | Argument type | Result type +| Aggregate function | Argument type | Result type | JPA standard / ANSI SQL standard -| `count()`, including `count(distinct)`, `count(all)`, and `count(*)` | Any | `Long` -| `avg()` | Any numeric type | `Double` -| `min()` | Any numeric type, or string | Same as the argument type -| `max()` | Any numeric type, or string | Same as the argument type -| `sum()` | Any numeric type | See table below +| `count()`, including `count(distinct)`, `count(all)`, and `count(*)` | Any | `Long` | ✓/✓ +| `avg()` | Any numeric type | `Double` | ✓/✓ +| `min()` | Any numeric type, or string | Same as the argument type | ✓/✓ +| `max()` | Any numeric type, or string | Same as the argument type | ✓/✓ +| `sum()` | Any numeric type | See table below | ✓/✓ +| `var_pop()`, `var_samp()` | Any numeric type | `Double` | ✗/✓ +| `stddev_pop()`, `stddev_samp()` | Any numeric type | `Double` | ✗/✓ |=== In the case of `sum()`, the rules for assigning a result type are: