Skip to content

Conversation

@dimitarvdimitrov
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov commented Dec 8, 2025

Add SampleValues method to the Statistics interface to allow selectivity estimation based on actual label values.

This is groundwork for improving regex selectivity estimation in query planning.


Note

Adds SampleValues(ctx, name) []string to Statistics for retrieving representative label value samples.

  • API (index):
    • Extend Statistics with SampleValues(ctx, name) []string to fetch representative samples of label values.

Written by Cursor Bugbot for commit 8463837. This will update automatically on new commits. Configure here.

@dimitarvdimitrov
Copy link
Contributor Author

closing; this interface is only used in mimir, i'll move it there and change it there too

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