Skip to content

Add _part_granule_offset column#82341

Merged
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
amosbird:add-part-granule-offset
Jun 26, 2025
Merged

Add _part_granule_offset column#82341
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
amosbird:add-part-granule-offset

Conversation

@amosbird
Copy link
Copy Markdown
Collaborator

@amosbird amosbird commented Jun 21, 2025

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Support _part_granule_offset virtual column in MergeTree-family tables. This column indicates the zero-based index of the granule/mark each row belongs to within its data part. This addresses #79572.

This PR also relaxes the restriction that _part_offset and _block_offset must be read during the first reading step. It further includes some preparatory refactoring extracted from #81526 to simplify the review of that PR.

I'm currently using _part_granule_offset to analyze whether the query condition cache fully records all relevant granules.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Jun 21, 2025

Workflow [PR], commit [d0157788]

Summary:

@clickhouse-gh clickhouse-gh bot added the pr-feature Pull request with new product feature label Jun 21, 2025
@KochetovNicolai KochetovNicolai self-assigned this Jun 21, 2025
@amosbird
Copy link
Copy Markdown
Collaborator Author

amosbird commented Jun 21, 2025

test_broken_projections/test.py::test_broken_ignored_replicated

#66835

@alexey-milovidov alexey-milovidov merged commit d1052ea into ClickHouse:master Jun 26, 2025
236 of 239 checks passed
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature Pull request with new product feature pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants