Skip to content

Cherry pick #111941 to 26.7: Make ReadNothingStep serializable for distributed query plans - #114708

Merged
robot-ch-test-poll merged 1 commit into
backport/26.7/111941from
cherrypick/26.7/111941
Aug 14, 2026
Merged

robot-ch-test-poll merged 1 commit into
backport/26.7/111941from
cherrypick/26.7/111941

Conversation

@robot-ch-test-poll4

Copy link
Copy Markdown
Contributor

Original pull-request #111941

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

@robot-ch-test-poll4 robot-ch-test-poll4 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 labels Aug 13, 2026
@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov All three cherry-picks conflict for one reason, and it turns out to be smaller than it looks.

Two of #111941's seven files do not exist on any release branch: shortCircuitConstantFalseJoin.cpp and 04512_short_circuit_constant_false_join.sql, both introduced by #110234, which was never backported. My diff to both of them is comment-only, 0 non-comment lines added or removed. So dropping them here loses nothing, and #110234 does not need a backport label.

The functional part (ReadNothingStep.{h,cpp} serialize/deserialize/isSerializable plus the registry entry) lives entirely in files that do exist on 26.5, 26.6 and 26.7, and every API it uses is unchanged there. Simulated resolution: 26.6 and 26.7 merge clean, 26.5 has one context-only conflict in QueryPlanStepRegistry.cpp because it lacks the unrelated registerShuffle*/registerGather* lines.

26.5 is not affected at all. The check that throws is assertFragmentSerializable in QueryPlan.cpp, which does not exist on 26.5. Measured with the release builds, empty MergeTree under make_distributed_plan = 1:

  • 26.5.7.47: returns 0, no error
  • 26.6.3.36: Code: 344 ... step 'ReadNothing' in stage 'stage_0' is not serializable for remote execution
  • 26.7.4.30: same as 26.6

The new test's own distribution oracle also returns nothing on 26.5, since ReadFromDistributedPlanSource is absent there, so the test would pass while covering nothing.

So 26.6 and 26.7 look worth having and 26.5 does not. Replacing v26.4-must-backport with v26.6-must-backport on #111941 expands to exactly those two. If you agree, closing all three of these and re-labelling is the cleanest route, since the automation then regenerates them; I will not touch the robot branches myself. Happy to go with whatever you prefer.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Resolved the cherry-pick conflicts by omitting the two comment-only changes to files absent from 26.7. The branch now contains only the ReadNothingStep serialization implementation, registry registration, and its regression test.

@robot-ch-test-poll
robot-ch-test-poll merged commit 0ab74db into backport/26.7/111941 Aug 14, 2026
1 check passed
@robot-ch-test-poll
robot-ch-test-poll deleted the cherrypick/26.7/111941 branch August 14, 2026 20:07
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-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