Skip to content

Commit 62873d1

Browse files
ivanceaalbertzaharovits
authored andcommitted
ESQL: AVG aggregation tests and ignore complex surrogates (#110579)
Some work around aggregation tests, with AVG as an example: - Added tests and autogenerated docs for AVG - As AVG uses "complex" surrogates (A combination of functions), we can't trivially execute them without a complete plan. As I'm not sure it's worth it for most aggregations, I'm skipping those cases for now, as to avoid blocking other aggs tests. The bad side effect of skipping those tests is that most tests in AvgTests are actually ignored (74 of 100)
1 parent 0876454 commit 62873d1

File tree

14 files changed

+246
-54
lines changed

14 files changed

+246
-54
lines changed

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

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

1010
// tag::agg_list[]
11-
* <<esql-agg-avg>>
11+
* <<esql-avg>>
1212
* <<esql-agg-count>>
1313
* <<esql-agg-count-distinct>>
1414
* <<esql-agg-max>>
@@ -23,7 +23,6 @@ The <<esql-stats-by>> command supports these aggregate functions:
2323
* experimental:[] <<esql-agg-weighted-avg>>
2424
// end::agg_list[]
2525

26-
include::avg.asciidoc[]
2726
include::count.asciidoc[]
2827
include::count-distinct.asciidoc[]
2928
include::max.asciidoc[]
@@ -33,6 +32,7 @@ include::min.asciidoc[]
3332
include::percentile.asciidoc[]
3433
include::st_centroid_agg.asciidoc[]
3534
include::sum.asciidoc[]
35+
include::layout/avg.asciidoc[]
3636
include::layout/top.asciidoc[]
3737
include::values.asciidoc[]
3838
include::weighted-avg.asciidoc[]

docs/reference/esql/functions/avg.asciidoc

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

docs/reference/esql/functions/description/avg.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/examples/avg.asciidoc

Lines changed: 22 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/kibana/definition/avg.json

Lines changed: 48 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/kibana/docs/avg.md

Lines changed: 11 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/layout/avg.asciidoc

Lines changed: 15 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/parameters/avg.asciidoc

Lines changed: 6 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/signature/avg.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/reference/esql/functions/types/avg.asciidoc

Lines changed: 11 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)