Skip to content

Commit 0e6bbb0

Browse files
authored
ESQL: TOP support for strings (elastic#113183) (elastic#113408)
Adds support to the `TOP` aggregation for `keyword` and `text` field types. Closes elastic#109849
1 parent 6ca4fb2 commit 0e6bbb0

File tree

27 files changed

+1507
-128
lines changed

27 files changed

+1507
-128
lines changed

docs/changelog/113183.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 113183
2+
summary: "ESQL: TOP support for strings"
3+
area: ES|QL
4+
type: feature
5+
issues:
6+
- 109849

docs/reference/esql/functions/kibana/definition/top.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/types/top.asciidoc

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

x-pack/plugin/esql/compute/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,11 @@ tasks.named('stringTemplates').configure {
635635
it.inputFile = topAggregatorInputFile
636636
it.outputFile = "org/elasticsearch/compute/aggregation/TopBooleanAggregator.java"
637637
}
638+
template {
639+
it.properties = bytesRefProperties
640+
it.inputFile = topAggregatorInputFile
641+
it.outputFile = "org/elasticsearch/compute/aggregation/TopBytesRefAggregator.java"
642+
}
638643
template {
639644
it.properties = ipProperties
640645
it.inputFile = topAggregatorInputFile

x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/TopBytesRefAggregator.java

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