Skip to content

Add queryDSL support for exponential histograms #135625

@JonasKunz

Description

@JonasKunz

We recently added a new field type for exponential histograms to elasticsearch. The primary goal of this is to allow the direct usage of histograms ingested via OTLP.
In the EDOT collector, we currently convert all histograms to T-Digest and store them with histogram field type.
In order to allow a transition to the new exponential histogram field type without a breaking change, we need to support the new type in all queryDSL aggregations previously supported by histogram.

With all the above, we will ensure that queries that previously worked with histogram data will now also work with exponential_histogram data.
However, in order to allow a truly non-breaking transition, we should ensure that queries also work on mixed data.
E.g. if a field in a data stream is changed from histogram to exponential_histogram, queries ideally should still work even if they cover mixed type data.
For value_count, sum, avg, min and max this will work out of the box.
For the other aggregations this will likely require some investigation on how to achieve this.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions