Skip to content

Backport #106349 to 25.8: Fix crash in constraint optimization with correlated subqueries - #107967

Merged
Algunenano merged 2 commits into
25.8from
backport/25.8/106349
Jun 19, 2026
Merged

Algunenano merged 2 commits into
25.8from
backport/25.8/106349

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Jun 19, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #106349
Cherry-pick pull-request #107890

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 25.8.25.28

@robot-clickhouse robot-clickhouse added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Jun 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [2e22b81]

On 25.8, decorrelating a correlated subquery over a storage whose read
step is not cloneable (e.g. TinyLog -> ReadFromStorageStep) fails with
NOT_IMPLEMENTED 'Cannot clone ReadFromStorage plan step'. Switch the test
table to MergeTree, whose read step is cloneable, so the query runs.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@Algunenano
Algunenano merged commit e8fc0e6 into 25.8 Jun 19, 2026
33 checks passed
@Algunenano
Algunenano deleted the backport/25.8/106349 branch June 19, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants