Skip to content

Backport #110710 to 26.6: Fix text-index direct-read double-registration over Merge/Distributed - #111097

Merged
clickhouse-gh[bot] merged 2 commits into
26.6from
backport/26.6/110710
Jul 21, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.6from
backport/26.6/110710

Conversation

@robot-ch-test-poll2

@robot-ch-test-poll2 robot-ch-test-poll2 commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #110710

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

@robot-ch-test-poll2 robot-ch-test-poll2 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 Jul 20, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [fa25fe9]

Summary: ✅

26.6 does not have #109188,
which makes `StorageMerge` and `StorageDistributed` opt out of the
`optimize_functions_to_subcolumns` rewrite. When the test runner randomizes
that setting to 1, `mapValues(attributes)` in PREWHERE is rewritten to the
subcolumn `attributes.values`, which `Merge` rejects with `ILLEGAL_PREWHERE`.
Pin the setting to 0 so the predicate keeps the function form that matches
the text-index expression, as in the original repro.

Same fix as on backport/26.4/110710 (PR #111095), where it was verified
against the PR's arm_release binary: the unpinned test fails with
`ILLEGAL_PREWHERE` under `optimize_functions_to_subcolumns = 1`, the pinned
test matches the reference.

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh
clickhouse-gh Bot merged commit 7367c76 into 26.6 Jul 21, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/110710 branch July 21, 2026 02:53
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.

3 participants