Repository navigation
Backport #110710 to 26.4: Fix text-index direct-read double-registration over Merge/Distributed - #111095
Conversation
…ion over Merge/Distributed
|
Workflow [BackportPR], commit [7f51118] Summary: ✅ |
26.4 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`: "Table expression logs_merge does not support column attributes.values in PREWHERE". Pin the setting to 0 so the predicate keeps the function form that matches the text-index expression, as in the original repro. Verified against the arm_release binary of this PR: the unpinned test fails with `ILLEGAL_PREWHERE` under `optimize_functions_to_subcolumns = 1`, the pinned test matches the reference. Failing check: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=111095&sha=7cc36ee3705fc895035c88523cc7a4553e8dd41e&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%2C%201%2F2%29 Co-Authored-By: Claude Fable 5 <[email protected]>
26.3 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]>
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]>
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]>
|
The failing test Root cause: the trigger query does The backported fix itself works: the original Options: cherry-pick prerequisite b2be878 ahead of the fix; or drop 04549 from the backport (the crash it guards is unreachable here, since the trigger query's PREWHERE-on-Merge-subcolumn form is itself unsupported on this branch); or accept as non-blocking, as done for 26.6. Per policy I am not pushing to the robot backport branch; flagging the root cause for the maintainer to decide. |
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.4.5.148