Skip to content

Backport #108607 to 26.3: Fix direct read from multiple partially materialized text indexes - #108663

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

CurtizJ merged 2 commits into
26.3from
backport/26.3/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 #108662

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

@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 [935df7a]

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 de30904 into 26.3 Jun 29, 2026
34 checks passed
@CurtizJ
CurtizJ deleted the backport/26.3/108607 branch June 29, 2026 21:25
bytehalo-infra added a commit to sentioxyz/ClickHouse that referenced this pull request Sep 25, 2026
STOR: direct read from several partially materialized text indexes -> wrong/exc.
Effect in the production build a394e92: its upstream test(s) 04411_text_index_multiple_partially_materialized fail on it and pass on official 26.8.8.8, run on isolated servers (evidence/fix_ci_20260925/upstream_repro/server_triage_PROD263_vs_UP2688.tsv).
Upstream patch unchanged, with its test(s): 04411_text_index_multiple_partially_materialized.

Co-Authored-By: Claude Opus 5.5 <[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-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants