Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Oct 30, 2025

This change fixes a mistake in the dimension values aggregator. The bug prevented the shortcut in production (not correctness issue) and caused incorrect results in tests when using a block hash that reserves 0 for nulls. This change corrects the issue and randomly uses two types of block hash in tests: one that reserves group 0 for nulls and one that does not.

Closes #137378

@dnhatn dnhatn added :StorageEngine/TSDB You know, for Metrics >test Issues or PRs that are addressing/adding tests labels Oct 31, 2025
@dnhatn dnhatn requested a review from kkrik-es October 31, 2025 00:46
@dnhatn dnhatn marked this pull request as ready for review October 31, 2025 00:46
@elasticsearchmachine
Copy link
Collaborator

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

@kkrik-es
Copy link
Contributor

Backport to 9.2 too?

@dnhatn
Copy link
Member Author

dnhatn commented Oct 31, 2025

Thanks Kostas! This class is in 9.3 only.

@dnhatn dnhatn merged commit 85c42bc into elastic:main Oct 31, 2025
34 checks passed
@dnhatn dnhatn deleted the fix-dimension-grouping branch October 31, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:StorageEngine/TSDB You know, for Metrics Team:StorageEngine >test Issues or PRs that are addressing/adding tests v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] DimensionValuesByteRefGroupingAggregatorFunctionTests testSimple failing

3 participants