Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/examples/count.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public class Count extends AggregateFunction implements ToAggregator, SurrogateE
),
@Example(
description = "To count the same stream of data based on two different expressions "
+ "use the pattern `COUNT(<expression> OR NULL)`",
+ "use the pattern `COUNT(<expression> OR NULL)`. This builds on the three-valued logic "
+ "({wikipedia}/Three-valued_logic[3VL]) of the language: `TRUE OR NULL` is `TRUE`, but `FALSE OR NULL` is `NULL`, "
+ "plus the way COUNT handles `NULL`s: `COUNT(TRUE)` and `COUNT(FALSE)` are both 1, but `COUNT(NULL)` is 0.",
file = "stats",
tag = "count-or-null"
) }
Expand Down
Loading