Skip to content

Commit 871bf63

Browse files
Don't compare with SQL in aggs chapters (elastic#669)
With this commit we remove all SQL references in the aggs chapters that don't contribute any value.
1 parent d8aed6c commit 871bf63

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

300_Aggregations/60_cardinality.asciidoc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
=== Finding Distinct Counts
33

44
The first approximate aggregation provided by Elasticsearch is the `cardinality`
5-
metric.((("cardinality", "finding distinct counts")))((("aggregations", "approximate", "cardinality")))((("approximate algorithms", "cardinality")))((("distinct counts"))) This provides the cardinality of a field, also called a _distinct_ or
6-
_unique_ count. ((("unique counts"))) You may be familiar with the SQL version:
7-
8-
[source, sql]
9-
--------
10-
SELECT COUNT(DISTINCT color)
11-
FROM cars
12-
--------
5+
metric.((("cardinality", "finding distinct counts")))((("aggregations", "approximate", "cardinality")))((("approximate algorithms", "cardinality")))((("distinct counts")))
136

147
Distinct counts are a common operation, and answer many fundamental business questions:
158

0 commit comments

Comments
 (0)