Skip to content

Commit 735d80d

Browse files
authored
ESQL: Add COUNT and COUNT_DISTINCT aggregation tests (#111409)
1 parent e24a7c1 commit 735d80d

File tree

42 files changed

+1849
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1849
-164
lines changed

docs/changelog/111367.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 111367
2+
summary: "ESQL: Add Values aggregation tests, fix `ConstantBytesRefBlock` memory handling"
3+
area: ES|QL
4+
type: bug
5+
issues: []

docs/reference/esql/functions/aggregation-functions.asciidoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ The <<esql-stats-by>> command supports these aggregate functions:
99

1010
// tag::agg_list[]
1111
* <<esql-avg>>
12-
* <<esql-agg-count>>
13-
* <<esql-agg-count-distinct>>
12+
* <<esql-count>>
13+
* <<esql-count_distinct>>
1414
* <<esql-max>>
1515
* <<esql-median>>
1616
* <<esql-median_absolute_deviation>>
@@ -19,13 +19,13 @@ The <<esql-stats-by>> command supports these aggregate functions:
1919
* experimental:[] <<esql-st_centroid_agg>>
2020
* <<esql-sum>>
2121
* <<esql-top>>
22-
* <<esql-agg-values>>
22+
* <<esql-values>>
2323
* experimental:[] <<esql-agg-weighted-avg>>
2424
// end::agg_list[]
2525

26-
include::count.asciidoc[]
27-
include::count-distinct.asciidoc[]
2826
include::layout/avg.asciidoc[]
27+
include::layout/count.asciidoc[]
28+
include::layout/count_distinct.asciidoc[]
2929
include::layout/max.asciidoc[]
3030
include::layout/median.asciidoc[]
3131
include::layout/median_absolute_deviation.asciidoc[]
@@ -34,5 +34,5 @@ include::layout/percentile.asciidoc[]
3434
include::layout/st_centroid_agg.asciidoc[]
3535
include::layout/sum.asciidoc[]
3636
include::layout/top.asciidoc[]
37-
include::values.asciidoc[]
37+
include::layout/values.asciidoc[]
3838
include::weighted-avg.asciidoc[]

docs/reference/esql/functions/appendix/count_distinct.asciidoc

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/appendix/values.asciidoc

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/count-distinct.asciidoc

Lines changed: 0 additions & 85 deletions
This file was deleted.

docs/reference/esql/functions/description/count.asciidoc

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/description/count_distinct.asciidoc

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/description/values.asciidoc

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/count.asciidoc renamed to docs/reference/esql/functions/examples/count.asciidoc

Lines changed: 6 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/examples/count_distinct.asciidoc

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)