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 2 times, most recently from 0b96a23 to d7c57a3 Compare October 19, 2025 14:49
@yeya24
Copy link
Collaborator

yeya24 commented Oct 29, 2025

Hey @jesusvazquez, are you planning to come back to this again and merge it?

@jesusvazquez
Copy link
Contributor Author

jesusvazquez commented Oct 29, 2025

👋 @yeya24 Yep, i have a dirty commit locally cleaning it up a bit. Maybe i'll have time this week or next week. If you want to build on top of my branch you can do it. Its already working but there is a bit of code duplication.

@jesusvazquez jesusvazquez force-pushed the jvp/projection-labels branch from af9bb59 to 0f80edd Compare October 30, 2025 13:22
@jesusvazquez jesusvazquez force-pushed the jvp/projection-labels branch from 0f80edd to 1ac48f8 Compare October 30, 2025 14:21
@jesusvazquez jesusvazquez marked this pull request as ready for review October 30, 2025 14:31
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