Skip to content

Backport #105996 to 26.3: Fix possible OOM due to a too-large string literal sent within the query - #106498

Merged
alexey-milovidov merged 2 commits into
26.3from
backport/26.3/105996
Jun 6, 2026
Merged

alexey-milovidov merged 2 commits into
26.3from
backport/26.3/105996

Conversation

@robot-clickhouse

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

Copy link
Copy Markdown
Member

Original pull-request #105996
Cherry-pick pull-request #106479

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

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

clickhouse-gh Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [d2cb515]

Summary: ✅

@alexey-milovidov
alexey-milovidov merged commit 27ae4e9 into 26.3 Jun 6, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.3/105996 branch June 6, 2026 16:05
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
The `26.3` build was broken with:

    src/Storages/StorageFile.cpp:1658:22: error: field designator
    'storage_id' does not refer to any field in type
    'VirtualsForFileLikeStorage'

This was introduced by the backport of ClickHouse#105584 ("Honor
`cast_string_to_date_time_mode` for hive partition values"), which
cherry-picked a `.storage_id = storage->getStorageID()` initializer for
`VirtualsForFileLikeStorage`. On `master` that field exists because it
was added by ClickHouse#101409 ("Native Common Virtuals for File-Like"), but
ClickHouse#101409 was never backported to `26.3`, so the struct here has no
`storage_id` member and the designated initializer fails to compile.

`addRequestedFileLikeStorageVirtualsToChunk` on `26.3` never reads
`storage_id`, so removing the initializer is behavior-preserving and
restores the build for the whole release branch.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106498&sha=b7c045c7bd5bb605b946fe1d77092a02ccef89bb&name_0=BackportPR
Surfaced on PR: ClickHouse#106498

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.

4 participants