Skip to content

Conversation

@yeya24
Copy link
Collaborator

@yeya24 yeya24 commented Dec 11, 2025

By default, when no projection the projection hints will be projection include set to false and no projection labels. This should fetch all labels which is the same as no projection.

However, the implementation today will fetch all labels + hash column on the default case. This is totally unnecessary as series hash should be only fetched when we skip fetching certain labels due to projection. But the default case, we still fetch all label columns then there is no need to fetch the hash column.

This PR adds a check to only fetch hash when there is at least 1 projection label to exclude.

Copy link
Contributor

@jesusvazquez jesusvazquez left a comment

Choose a reason for hiding this comment

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

LGTM

@jesusvazquez jesusvazquez merged commit 65ebeae into prometheus-community:main Dec 11, 2025
6 of 7 checks passed
@yeya24 yeya24 deleted the exclude-hash-when-no-projection-labels-exclude branch December 11, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants