Skip to content

Backport #102033 to 26.3: Fix LOGICAL_ERROR crash in IcebergMetadata::iterate when datalake_table_state is missing - #114383

Merged
alexey-milovidov merged 5 commits into
26.3from
backport/26.3/102033
Aug 15, 2026
Merged

alexey-milovidov merged 5 commits into
26.3from
backport/26.3/102033

Conversation

@robot-clickhouse-ci-2

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #102033

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.3.18.32

…:iterate when datalake_table_state is missing
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Aug 11, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [b301d83]

Summary: ✅

alexey-milovidov and others added 4 commits August 12, 2026 18:16
On 26.3 virtual columns live on IStorage, not inside
StorageInMemoryMetadata (that migration happened on master after 26.3),
so the cherry-picked code failed to build:

    StorageObjectStorage.cpp:476:39: error: no member named 'withVirtuals' in 'DB::StorageInMemoryMetadata'

Recompute the virtual columns from the rebuilt columns and pass them
explicitly to the StorageSnapshot constructor instead, which is the
equivalent of master's withVirtuals on this branch.

Build log: https://s3.amazonaws.com/clickhouse-test-reports/PRs/114383/19f74030d46e9749e828db8f9e526a1c5ac07874/build_amd_debug/build_clickhouse/build_clickhouse.log

Co-Authored-By: Claude Fable 5 <[email protected]>
…on 26.3

`04306_delta_lake_merge_missing_table_state` failed in CI with
`Unknown table expression identifier`: the branch has no
`tests/queries/0_stateless/data_delta_lake/struct_column_mapping`
dataset (it was added to `master` by a later pull request), so the
`cp -r` copied nothing and `CREATE TABLE ... ENGINE = DeltaLakeLocal`
failed before the read.

The files are copied verbatim from `master`; they are identical to the
state at the merge commit of the original pull request #102033.
Verified with the 26.3 build of this pull request: the failpoint-guarded
read returns the expected `1` / `2`.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=114383&sha=0925d7c93148d0914652ed32e40cf3b18bdf669b&name_0=BackportPR
Pull request: #114383
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Refreshed this backport with the current 26.3 tip in b301d83. The remaining 04408_lazy_materialization_part_offset_prewhere failure is the known branch-wide 26.3 issue tracked in #113946; it is unrelated to this Iceberg change and requires the documented release-owner decision on optimizer backports.

@alexey-milovidov
alexey-milovidov merged commit bb40d83 into 26.3 Aug 15, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.3/102033 branch August 15, 2026 15:40
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-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants