Skip to content

Cherry pick #111809 to 26.10: Fix projections returning lightweight-deleted rows after a mutation rebuilds them on a Wide part - #132783

Merged
nickitat merged 1 commit into
backport/26.10/111809from
cherrypick/26.10/111809
Nov 19, 2026
Merged

nickitat merged 1 commit into
backport/26.10/111809from
cherrypick/26.10/111809

Conversation

@robot-ch-test-poll3

Copy link
Copy Markdown
Contributor

Original pull-request #111809

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.

Before you resolve anything

Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.

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

@robot-ch-test-poll3 robot-ch-test-poll3 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 Nov 18, 2026
@groeneai

Copy link
Copy Markdown
Collaborator

I resolved the conflict on my fork, as resolve-26.10-cherrypick-111809 @ a04b9c88056a. It is a merge of this PR's head f0f6023bd040 and backport/26.10/111809, so applying it is a fast-forward (I cannot push to cherrypick/26.10/111809 myself):

git fetch https://github.com/groeneai/ClickHouse.git resolve-26.10-cherrypick-111809
git push origin FETCH_HEAD:cherrypick/26.10/111809

The only conflict is WhatIfProjectionEstimator.cpp: the hunk changes the handling of deleted rows that EXPLAIN WHATIF got in #125792, which is not on 26.10. I kept the 26.10 file and left out test 05402_hypothetical_projection_estimate_lightweight_delete, which fails on 26.10 even with this fix. The rest is #111809 unchanged.

On a 26.10 debug build the changed tests pass 20 of 20 runs with randomized settings (05401: 7 of 7). With only the four src/ files reverted, 04627 and 05339 fail on every run.

…l-projection-stale

Fix projections returning lightweight-deleted rows after a mutation rebuilds them on a Wide part
@nickitat
nickitat force-pushed the cherrypick/26.10/111809 branch from f0f6023 to 42ca503 Compare November 19, 2026 13:19
@nickitat
nickitat merged commit cb45410 into backport/26.10/111809 Nov 19, 2026
1 check passed
@nickitat
nickitat deleted the cherrypick/26.10/111809 branch November 19, 2026 13:19
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.

4 participants