Skip to content

Add query limiter support to parquet querier #6870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 11, 2025

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Jul 9, 2025

What this PR does:

This PR adds query limiter support to parquet querier. Supported limits are:

  • Series count using existing query limiter which tracks unique series
  • Chunk count using existing query limiter
  • Chunk bytes using existing query limiter
  • Data bytes using existing query limiter

Additionally introduce new parquet querier specific limits:

  • parquet_max_fetched_row_count: Number of matched rows in Parquet before materializing any chunks so this might include series that doesn't actually have chunks in the time range.
  • parquet_max_fetched_chunk_bytes: Total size of fetched Chunk column pages.
  • parquet_max_fetched_data_bytes: Total size of fetched Label column pages + Chunk column pages.

Ready for review but note that the upstream PR for parquet common is still not merged. prometheus-community/parquet-common#81.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: yeya24 <[email protected]>
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jul 10, 2025
@yeya24 yeya24 marked this pull request as ready for review July 10, 2025 07:15
@yeya24 yeya24 requested a review from alanprot July 10, 2025 20:27
Signed-off-by: yeya24 <[email protected]>
Copy link
Contributor

@harry671003 harry671003 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you.

Signed-off-by: yeya24 <[email protected]>
Copy link
Member

@alanprot alanprot left a comment

Choose a reason for hiding this comment

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

THANKS!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 11, 2025
@yeya24 yeya24 merged commit 3ba0eb9 into cortexproject:master Jul 11, 2025
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/querier lgtm This PR has been approved by a maintainer size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants