Apache DataFusion SQL Query Engine
Fix count() docs around including null values (#11293)
Piotr Findeisen1b3a7af673e5
diff --git a/docs/source/user-guide/sql/aggregate_functions.md b/docs/source/user-guide/sql/aggregate_functions.mdindex 427a7bf130..edb0e1d0c9 100644--- a/docs/source/user-guide/sql/aggregate_functions.md+++ b/docs/source/user-guide/sql/aggregate_functions.md@@ -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)