Skip to content

Cherry pick #112649 to 26.3: Fix deduplication token attribution for materialized-view targets of partitioned tables - #113258

Merged
robot-clickhouse merged 3 commits into
backport/26.3/112649from
cherrypick/26.3/112649
Oct 1, 2026
Merged

robot-clickhouse merged 3 commits into
backport/26.3/112649from
cherrypick/26.3/112649

Conversation

@robot-clickhouse-ci-1

Copy link
Copy Markdown
Contributor

Original pull-request #112649

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

CheSema and others added 2 commits July 30, 2026 20:51
…ialized-view targets

filterToPartition attributed each token to partitions by walking its source-row
range over a partition selector sized to the sink block. When a materialized view
changes the row count before a partitioned deduplicating target, the tokens describe
the source rows while the selector describes the smaller view-output block, so the
walk read out of bounds (a crash in release builds; a NOT_IMPLEMENTED rejection after
#111103's guard). Per-partition attribution is only valid at the direct insert
destination; for any materialized-view target (level == VIEW) keep every token in
every partition instead.

Related: #111100
Related: #111103
Caused by: #111049
…-drift

Fix deduplication token attribution for materialized-view targets of partitioned tables
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default labels Aug 4, 2026
@robot-ch-test-poll2

Copy link
Copy Markdown
Contributor

Dear @fm4v, @CheSema, this cherry-pick PR has not been updated for 3d0h28m2s. Please resolve the conflicts to backport #112649, or close this PR if the backport is no longer needed. This PR will be automatically closed after 7 days of inactivity.

@fm4v fm4v closed this Aug 7, 2026
@CheSema CheSema reopened this Oct 1, 2026
@robot-ch-test-poll3

Copy link
Copy Markdown
Contributor

Dear @fm4v, @CheSema, this PR is opened while #112649 was marked as backported. The pr-backports-created is removed, so the original PR can be processed again.

If the cherry-pick is not needed anymore, then just close this PR.

1 similar comment
@robot-clickhouse

Copy link
Copy Markdown
Member

Dear @fm4v, @CheSema, this PR is opened while #112649 was marked as backported. The pr-backports-created is removed, so the original PR can be processed again.

If the cherry-pick is not needed anymore, then just close this PR.

@robot-clickhouse
robot-clickhouse merged commit de98c95 into backport/26.3/112649 Oct 1, 2026
1 check passed
@robot-clickhouse
robot-clickhouse deleted the cherrypick/26.3/112649 branch October 1, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants