Skip to content

Conversation

@JonasKunz
Copy link
Contributor

@JonasKunz JonasKunz commented Sep 2, 2025

Preparation for the ES|QL exponential histogram type.
We already have methods for creating exponential histograms from raw data, this PR adds a public interface for creating them directly by specifying the buckets.

This typically is not needed in actual production code, but in tests: E.g. the ES|QL tests require the ability to create a literal for each datatype, therefore including exponential histograms. Those literals need to be serializable, which is why we need a clean way of reconstructing exponential histograms from the buckets.

For that reason the builder was written with simple maintainability in mind instead of best possible performance.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team v9.2.0 labels Sep 2, 2025
Copy link
Contributor

@kkrik-es kkrik-es left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor comment.

@JonasKunz JonasKunz merged commit 22af544 into elastic:main Sep 3, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants