Repository navigation
Backport #110710 to 26.5: Fix text-index direct-read double-registration over Merge/Distributed - #111096
Merged
Conversation
…ion over Merge/Distributed
Contributor
|
Workflow [BackportPR], commit [1417d03] Summary: ✅ |
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
26.5.6.60