Commit 2163ad5
[8.x] Backport to_aggregate_metric_double and sorting (#126438)
* [ES|QL] ToAggregateMetricDouble function (#124595)
This commit adds a conversion function from numerics (and aggregate
metric doubles) to aggregate metric doubles.
It is most useful when you have multiple indices, where one index uses
aggregate metric double (e.g. a downsampled index) and another uses a
normal numeric type like long or double (e.g. an index prior to
downsampling).
* remove old docs
* [ES|QL] Add ToAggregateMetricDouble example (#125518)
Adds AggregateMetricDouble to the ES|QL CSV tests and examples of how to
use the ToAggregateMetricDouble function
* [ES|QL] Fix sorting when aggregate_metric_double present (#125191)
Previously if an aggregate_metric_double was present amongst fields and
you tried to sort on any (not necessarily even on the agg_metric itself)
field in ES|QL, it would break the results.
This commit doesn't add support for sorting _on_ aggregate_metric_double
(it is unclear what aspect would be sorted), but it fixes the previous
behavior.
* drop old style docs again
* add new style docs
* [CI] Auto commit changes from spotless
---------
Co-authored-by: elasticsearchmachine <[email protected]>1 parent 0dbe2d7 commit 2163ad5
File tree
35 files changed
+1342
-79
lines changed- docs
- changelog
- reference/esql/functions
- description
- examples
- kibana
- definition
- docs
- layout
- parameters
- signature
- types
- x-pack/plugin
- esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type
- esql
- compute/src/main/java/org/elasticsearch/compute
- data
- operator/topn
- qa/testFixtures/src/main
- java/org/elasticsearch/xpack/esql
- resources
- src
- main/java/org/elasticsearch/xpack/esql
- action
- expression
- function
- scalar/convert
- planner
- type
- test/java/org/elasticsearch/xpack/esql
- expression/function/scalar/convert
- plan/physical
- mapper-aggregate-metric/src/main/java/org/elasticsearch/xpack/aggregatemetric/mapper
- src/yamlRestTest/resources/rest-api-spec/test/esql
35 files changed
+1342
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments