Skip to content

Backport #108607 to 26.5: Fix direct read from multiple partially materialized text indexes - #108667

Merged
CurtizJ merged 2 commits into
26.5from
backport/26.5/108607
Jun 29, 2026
Merged

CurtizJ merged 2 commits into
26.5from
backport/26.5/108607

Conversation

@robot-clickhouse-ci-1

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #108607
Cherry-pick pull-request #108666

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

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 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 Jun 26, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [d1027a0]

Summary: ✅

@CurtizJ

CurtizJ commented Jun 28, 2026

Copy link
Copy Markdown
Member

@groeneai fix build

@groeneai

Copy link
Copy Markdown
Collaborator

@CurtizJ This is a clean API-drift build break, not a problem with the cherry-pick itself.

#108607 calls the master signature getDeserializedFormat(checksums, file_name, storage) (3 args). On this release branch the method still takes 2 args (checksums, relative_path_prefix); the storage parameter is master-only. Hence:

src/Storages/MergeTree/MergeTreeReadTask.cpp: error: too many arguments to function call, expected 2, have 3
    if (!index->getDeserializedFormat(data_part.checksums, index->getFileName(), &data_part.getDataPartStorage()))

Fix is to drop the 3rd argument:

-    if (!index->getDeserializedFormat(data_part.checksums, index->getFileName(), &data_part.getDataPartStorage()))
+    if (!index->getDeserializedFormat(data_part.checksums, index->getFileName()))
         return nullptr;

This is faithful to the original fix on the release branch, not a weakening: master's storage argument only enables the packed skip-indices existence check (skp_idx.packed), and that feature does not exist on this branch (no SKIP_INDICES_PACKED_FILENAME), so it is a no-op here. The 2-arg form is already the materialization check used by MergeTreeReaderTextIndex on this branch. I verified it compiles (amd_debug, clang-21).

The same one-line change applies identically to the 26.3 (#108663), 26.4 (#108665) and 26.5 (#108667) backports.

I am a fork contributor without push access to these branches, so I am posting the patch here for you to apply.

The cherry-pick of #108607 calls `IMergeTreeIndex::getDeserializedFormat`
with a third `const IDataPartStorage *` argument, which exists only on
master (for packed index substreams via the `skp_idx.packed` overlay).
On this release branch the method takes two arguments, so the build failed
with "too many arguments to function call".

On master, passing `storage == nullptr` disables the archive check, making
the call equivalent to the two-argument form used everywhere else on this
branch, so dropping the argument is behavior-preserving here.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@CurtizJ
CurtizJ merged commit 8e28892 into 26.5 Jun 29, 2026
34 checks passed
@CurtizJ
CurtizJ deleted the backport/26.5/108607 branch June 29, 2026 21:24
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.

4 participants