Skip to content

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

Merged
CurtizJ merged 4 commits into
26.5from
backport/26.5/110710
Jul 21, 2026
Merged

CurtizJ merged 4 commits into
26.5from
backport/26.5/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.5.6.60

@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 [1417d03]

Summary: ✅

alexey-milovidov and others added 3 commits July 20, 2026 23:00
…backport

The backported fix from #110710 uses
`ReadFromMergeTree::getIndexReadTasks`, which on master was introduced by a later
change (commit 69d7a00) that is not part of the 26.5 branch. Add the minimal
const accessor so the backport compiles.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=111096&sha=c1948f76888585c1d820963b779926b61adf1171&name_0=BackportPR

Co-Authored-By: Claude Fable 5 <[email protected]>
26.5 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]>
@CurtizJ
CurtizJ merged commit b6afccd into 26.5 Jul 21, 2026
35 checks passed
@CurtizJ
CurtizJ deleted the backport/26.5/110710 branch July 21, 2026 22:13
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