Skip to content

Backport #119032 to 26.3: Text index: make mergeTreeTextIndex stricter when a row policy applies - #120580

Merged
PedroTadim merged 3 commits into
26.3from
backport/26.3/119032
Sep 17, 2026
Merged

PedroTadim merged 3 commits into
26.3from
backport/26.3/119032

Conversation

@robot-ch-test-poll3

@robot-ch-test-poll3 robot-ch-test-poll3 commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #119032
Cherry-pick pull-request #120294

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

@robot-ch-test-poll3 robot-ch-test-poll3 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Sep 17, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [d8a769e]

Summary: ✅

PedroTadim and others added 2 commits September 17, 2026 13:45
`ClientInfo::current_roles` only exists from 26.7 on, so the `same_user`
allowance the cherry-pick carries did not compile here:

    StorageMergeTreeTextIndex.cpp:422: error: no member named 'current_roles' in 'DB::ClientInfo'

Fall back to the form 26.6 carries, where a secondary query is refused unless
it arrives over an interserver connection, and take 26.6's copy of
`05153_text_index_mergeTreeTextIndex_remote` with it: without the allowance,
reaching a shard through `remote` as the same user is refused, so that case
expects `ACCESS_DENIED` rather than a row count.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@PedroTadim
PedroTadim merged commit 656d225 into 26.3 Sep 17, 2026
36 checks passed
@PedroTadim
PedroTadim deleted the backport/26.3/119032 branch September 17, 2026 17:49
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.

5 participants