Skip to content

Conversation

@jesusvazquez
Copy link
Contributor

Attempt to implement projections since we previously added the hash in the converter #111 and the prometheus dependency was updated to include the ProjectionHints.

Note that there is a flag to enable this in the materializer, if said flag is false the library will continue to materialize all labels.

Another thing to note is that x_series_hash needs to be passed down as a hint for the library to promote the hash. I was wondering between a) the library just doing it or b) the caller knowing that if they want the hash they need to ask for it. I decided to go for b) because i guess its more optimal everytime you dont need the hash. We can discuss this.

I still want to add a high level test to test a basic aggregation working so leaving it as draft.

@jesusvazquez jesusvazquez force-pushed the jvp/projection-labels branch from aab6f1b to 0b96a23 Compare October 18, 2025 07:21
@jesusvazquez jesusvazquez force-pushed the jvp/projection-labels branch from 0b96a23 to d7c57a3 Compare October 19, 2025 14:49
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.

1 participant