Skip to content

Conversation

JonasKunz
Copy link
Contributor

@JonasKunz JonasKunz commented Sep 25, 2025

Part of #135625.

Adds a IndexFieldData and LeafFieldData implementation for the exponential_histogram field type in preparation for queryDSL aggs.

This mostly adds required boilerplate and doesn't really add any new logic, as the doc-value parsing code is reused and shared from the synthethic source reconstruction code.

I took inspiration on how to implement the types from the existing histogram and aggregate_metric_double types.
It looks like there are no unit tests for the IndexFieldData, LeafFieldData and ValuesSource types in those types, as I guess they are tested through their use in aggregations?

For that reason this PR also doesn't add any tests for those classes. If there are any ones I should add let me know.
The doc values loading logic is already well tested through the synthethic-source code path.

@JonasKunz JonasKunz added :StorageEngine/Mapping The storage related side of mappings >non-issue labels Sep 25, 2025
@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team v9.2.0 labels Sep 25, 2025
@JonasKunz JonasKunz marked this pull request as ready for review September 25, 2025 11:43
@elasticsearchmachine
Copy link
Collaborator

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

@JonasKunz JonasKunz self-assigned this Sep 29, 2025
@kkrik-es kkrik-es requested a review from not-napoleon October 1, 2025 12:39
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.

If possible, Mark should take a look as well.

@JonasKunz JonasKunz merged commit 9938742 into elastic:main Oct 8, 2025
34 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.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants