Skip to content

Commit

Permalink
Fix count() docs
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 5, 2024
1 parent d44c7f2 commit 85e3666
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 85e3666

Please sign in to comment.