Repository navigation
Split the mixed ALTER in 05258_text_index_low_cardinality_dictionary so it runs in a Replicated database - #124109
Conversation
`ALTER TABLE tab CLEAR INDEX idx_lc, MATERIALIZE INDEX idx_lc` combines an alter command with a mutation command. A Replicated database refuses such a query (`validateReplicatedDatabaseSegments`, Code 392 QUERY_IS_PROHIBITED), so in the DBReplicated lane the client stopped at this line on every run and the rest of the test never executed there. The failure was mostly hidden by the reproducibility rerun, which passes outside the lane. Run the two commands as separate statements, each with mutations_sync = 2. Outside a Replicated database the combined statement already created these two mutations in this order, so the test still rebuilds the cleared index and the reference is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)My own cold review plus an independent model pass (codex, 0 findings). 1 finding in total.
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261005-223400 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261005-220100 |
|
Workflow [PR], commit [52cea10] Summary: ✅ AI ReviewSummaryThis PR splits the mixed Final Verdict✅ No blocking findings. I did not post inline review comments because I did not find any new issues that warrant them. |
A `Replicated` database refuses `ALTER`s of different types in a single query (`QUERY_IS_PROHIBITED`), so the test failed in `Stateless tests (arm_binary, s3 storage, DBReplicated, parallel, 2/2)`. Same change as #124109. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=123790&sha=98ab525128d3f1fa1c3e6bf6d777a8c86e3b1756&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20s3%20storage%2C%20DBReplicated%2C%20parallel%2C%202%2F2%29 Co-Authored-By: Claude Opus 5.5 <[email protected]>
7976ad9
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Related: #122409
05258_text_index_low_cardinality_dictionary(added by #122409) fails on every run of theDBReplicatedlane. Line 41,ALTER TABLE tab CLEAR INDEX idx_lc, MATERIALIZE INDEX idx_lc, mixes an alter command with a mutation command, and a Replicated database refuses that:Code: 392 ... For Replicated databases it's not allowed to execute ALTERs of different types in single query. The job usually still readsOKbecause the reproducibility rerun passes outside the lane (Failed 0 out of 3 reruns): since #122409 merged, every row ofStateless tests (amd_llvm_coverage, s3 storage, DBReplicated, parallel, 1/3)(108 by 2026-10-05 22:45 UTC) carries this error and none passed on the first try. It surfaced as a failure on #119181.The statement is split into
CLEAR INDEXandMATERIALIZE INDEX, each withmutations_sync = 2. Outside a Replicated database the combined statement already ran as these two mutations in this order, so the test still rebuilds the cleared index and the reference is unchanged. The rest of the test now runs in theDBReplicatedlane for the first time.Validation on a one-node Replicated database with embedded Keeper (
--replicated-database): the unedited test fails with the CI error at line 41; the edited test passes, 20/20 with random settings; 50/50 randomized runs outside the lane.Workflow [PR]
Sync PR [sync-upstream/pr/124109]
Version info
26.10.1.1789-master(included in26.10and later)