Skip to content

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 <benye@amazon.com>
Signed-off-by: yeya24 <benye@amazon.com>
@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 added 3 commits July 10, 2025 00:16
Signed-off-by: yeya24 <benye@amazon.com>
Signed-off-by: yeya24 <benye@amazon.com>
@yeya24 yeya24 requested a review from alanprot July 10, 2025 20:27
Signed-off-by: yeya24 <benye@amazon.com>
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 <benye@amazon.com>
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