Skip to content

Conversation

@yeya24
Copy link
Contributor

@yeya24 yeya24 commented Dec 11, 2025

What this PR does:

This PR bumps the current parquet marker file version from 1 to 2 to differentiate parquet files with and without hash column. Hash column is important as it is required to enable projection pushdown.

By having different versions for parquet files with and without the hash column, querier can make the decision if we need to enable projection or not. Only if all blocks to query have the hash column, we can do projection.

In the converter, now as long as the parquet file marker has a valid version (1 or 2) for now, conversion for the block is skipped, to avoid unnecessary conversion. If users want to re-convert their existing parquet files they can delete the existing markers and convert again.

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]

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 11, 2025
@yeya24 yeya24 requested a review from alanprot December 11, 2025 16:57
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

@yeya24 yeya24 merged commit 109b21e into cortexproject:master Dec 12, 2025
51 of 52 checks passed
@yeya24 yeya24 deleted the bump-parquet-converter-version branch December 12, 2025 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants