Skip to content

Conversation

@JonasKunz
Copy link
Contributor

This PR implements a value-based hashcode and equals method to be used by all subclasses of ExponentialHistogram.
This will be required a lot for ES|QL tests, as those rely on hashcode/equals on column values in assertions.

We might also need this for block equality, though I'd hope that we can get aways with byte-wise equality on the underlying sub-blocks, as we plan on making the ExponentialHistogramBlock a composite block.

@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team v9.2.0 labels Aug 27, 2025
@JonasKunz JonasKunz requested a review from felixbarny August 27, 2025 14:58
@JonasKunz JonasKunz marked this pull request as ready for review August 27, 2025 14:58
@JonasKunz JonasKunz requested a review from kkrik-es August 27, 2025 14:58
@elasticsearchmachine
Copy link
Collaborator

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

…quals

# Conflicts:
#	libs/exponential-histogram/src/main/java/org/elasticsearch/exponentialhistogram/ExponentialHistogram.java
#	libs/exponential-histogram/src/main/java/org/elasticsearch/exponentialhistogram/ExponentialHistogramUtils.java
#	x-pack/plugin/mapper-exponential-histogram/src/main/java/org/elasticsearch/xpack/exponentialhistogram/CompressedExponentialHistogram.java
@JonasKunz JonasKunz force-pushed the exp-histo-hashcode-equals branch from 40eaca7 to 3b0d8d0 Compare August 29, 2025 08:54
@JonasKunz JonasKunz merged commit 0a0e317 into elastic:main Aug 29, 2025
33 checks passed
@JonasKunz JonasKunz deleted the exp-histo-hashcode-equals branch August 29, 2025 12:11
JeremyDahlgren pushed a commit to JeremyDahlgren/elasticsearch that referenced this pull request Aug 29, 2025
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