Skip to content

Commit

Permalink
Fix count() docs around including null values (#11293)
Browse files Browse the repository at this point in the history
The count aggregate was documented to count null values, but it does not
do that. The implemented behavior is correct, so let's fix docs.
  • Loading branch information
findepi committed Jul 6, 2024
1 parent 13cb65e commit 1b3a7af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/source/user-guide/sql/aggregate_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,9 @@ bool_or(expression)

### `count`

Returns the number of rows in the specified column.
Returns the number of non-null values in the specified column.

Count includes _null_ values in the total count.
To exclude _null_ values from the total count, include `<column> IS NOT NULL`
in the `WHERE` clause.
To include _null_ values in the total count, use `count(*)`.

```
count(expression)
Expand Down

0 comments on commit 1b3a7af

Please sign in to comment.