Repository navigation
Conversation
…tach PR ClickHouse#109900 renamed the experimental MergeTree setting allow_experimental_text_index_positions to allow_experimental_text_index_phrase_search (and the text-index argument positions to support_phrase_search) without a compatibility alias. Both were experimental, so the feature owner declined an engine-side alias (see ClickHouse#110787). A table written by an older server references the removed setting, so the newer server rejects it on attach and the upgrade check reports an error-level message. This is a master-wide flaky upgrade failure that hit several unrelated PRs (ClickHouse#110615, ClickHouse#108950, ClickHouse#100394). Allow-list the exact legacy setting name in the upgrade error grep, mirroring the existing 'Unknown tokenizer: unicode_word' entry that handles the sibling text-index tokenizer rename. Narrowed to the exact name so genuinely unknown settings are not masked. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-2:20260717-134300 |
|
cc @maxknv @leshikus — could you review? One-line upgrade-check allow-list entry tolerating the removed experimental text-index setting |
|
Workflow [PR], commit [b46d5ef] AI ReviewSummaryThis PR narrows the Findings
Final VerdictStatus: |
| -e "Key expressions cannot contain subqueries" \ | ||
| -e "Expression must be deterministic but it contains non-deterministic part" \ | ||
| -e "Unknown tokenizer: 'unicode_word'" \ | ||
| -e "Unknown setting 'allow_experimental_text_index_positions'" \ |
There was a problem hiding this comment.
The allow-list is still incomplete for legacy text-index metadata that used the old argument name without the old MergeTree setting. MergeTreeIndexText only recognizes support_phrase_search, so a table created with positions = 0 now fails ATTACH with Unexpected text index arguments: positions in textIndexCreator / textIndexValidator instead of the filtered Unknown setting 'allow_experimental_text_index_positions' path (src/Storages/MergeTree/MergeTreeIndexText.cpp, current lines 2034-2035 and 2080-2081). The previous-release query corpus already creates that shape in 02346_text_index_partially_materialized (what are now lines 93 and 125 used to be positions = 0 before #109900), so this CI flake can come back as soon as that table survives the stress phase. Please cover the sibling legacy-argument failure too, or accept the old argument on ATTACH.
…n attach ClickHouse#109900 renamed the text-index argument positions to support_phrase_search without a compatibility alias. A table written by an older server with positions = 0/1 in its text index leaves positions unrecognized and fails on attach with 'Unexpected text index arguments: positions' from textIndexCreator/textIndexValidator, which is a different code path than the already-filtered 'Unknown setting' message. The previous-release corpus of 02346_text_index_partially_materialized creates exactly this shape. Allow-list the exact legacy argument message in the upgrade error grep, narrowed to the exact name so genuinely unexpected text index arguments are not masked. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Covered in 9054ec0. Confirmed: Added |
|
Closing this: the failure it suppresses can no longer occur, and adding the entries now would work against the cleanup direction on this file. The The rename (719cf80, 2026-07-09) is an ancestor of both That matches CIDB. The There is also a direct precedent pointing the other way from this PR: in 8d8d178 (2026-08-03) @ rschu1ze removed the sibling If the legacy shape ever reappears (a jump-version upgrade path, or an older release re-entering the previous-release resolution), the entries are recoverable from 9054ec0. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
#109900 renamed the experimental MergeTree setting
allow_experimental_text_index_positionstoallow_experimental_text_index_phrase_search(and the text-index argumentpositionstosupport_phrase_search) without a compatibility alias. A table written by an older server references the removed setting, so the newer server rejects it onATTACHand theUpgrade check (amd_release)reports an error-level message:This is a master-wide flaky upgrade-compatibility failure that hit several unrelated PRs, e.g. #110615, #108950, #100394 (none touching text indexes).
An engine-side compatibility alias was proposed in #110787 and declined by the text-index feature owner: both the setting and the
positionsargument were experimental (subject to change at any time, no production usage expected), so no compat is warranted in the engine.Given that, the fix belongs in the upgrade check: allow-list the exact legacy setting name in the upgrade error grep, mirroring the existing
Unknown tokenizer: 'unicode_word'entry that already handles the sibling text-index tokenizer rename from the same feature. Narrowed to the exact name so genuinely unknown settings are not masked.Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110615&sha=cd3230f13038705339c3080112f4877341d1a7ad&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29