Skip to content

Backport #126554 to 26.9: Fix cubic complexity of enumerating subcolumns of deeply nested types - #132355

Merged
clickhouse-gh[bot] merged 2 commits into
26.9from
backport/26.9/126554
Nov 19, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.9from
backport/26.9/126554

Conversation

@robot-ch-test-poll2

@robot-ch-test-poll2 robot-ch-test-poll2 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #126554

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: 26.9.34.10

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Nov 17, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [c6b7091]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=132355&sha=e2ccd2b13a3a809ff69af56aee66ee7297067e18&name_0=BackportPR&name_1=Stress%20test%20%28amd_tsan%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

The Logical error: Iceberg data file has 1 columns while its schema has 2 fields (in DataFileStatistics::addColumnSizesOnDisk) is unrelated to this backport: it also happens in ReleaseBranchCI on 26.9 (2026-11-16) and 26.8 (2026-11-18), and it was frequent in master PRs until about 2026-10-11. It may be covered by #126768 (merged into master on 2026-11-13, not backported to 26.9) or by #109838 (still open). I merged the latest 26.9 into this branch.

@clickhouse-gh
clickhouse-gh Bot merged commit 0be4615 into 26.9 Nov 19, 2026
44 of 45 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.9/126554 branch November 19, 2026 21:20
@groeneai

Copy link
Copy Markdown
Collaborator

This is STID 4224-3ae3, and its fix is already merged on master: #121821 (2026-10-10), not #126768 (the dropped-column case) or #109838. An Iceberg INSERT planned before a concurrent ADD COLUMN writes a 1-column block, while the writer took its statistics field ids from the newer 2-field schema, so addColumnSizesOnDisk throws on finalize. #121821 takes the field ids from the written block.

#121821 is in 26.10, but not in 26.8 and 26.9, which is why only those branches still hit it. CIDB since the merge: 26.9 (2026-10-11, 2026-11-16), this PR (2026-11-17), 26.8 (2026-11-18); none on master or 26.10 CI.

So no new PR is needed: a v26.8-must-backport label on #121821 backports it to both 26.8 and 26.9 (the cherry-pick applies cleanly to both). I asked for it in #121821 (comment); I don't have permission to add labels on this repo.

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!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants