Repository navigation
Stop 05227_storage_settings_unknown_name pinning where a SETTINGS reset is stored - #121163
Conversation
…et is stored This test asserts which SETTINGS names the File/URL/S3/Log-family check rejects. Three of its expected lines also pinned, through a full `SHOW CREATE TABLE` echo, *where* an accepted `name = DEFAULT` query-setting reset ends up in the stored clause. That placement is decided by the SETTINGS split, not by the check, and commit df3cad1 of ClickHouse#118423 moved it: a second loop over `ASTSetQuery::default_settings` in `InterpreterSetQuery::applySettingsFromQuery` now applies such a reset to the query context and erases it from the clause, and the clause is pruned only when `changes`, `default_settings` and `query_parameters` are all empty (it was pruned on `changes.empty()` alone). The placement already has a test that travels with the behaviour: `05099_create_database_with_inline_disk`, added by ClickHouse#118423, pins the hoisted clause plus a `system.query_log` read-back proving the reset reaches the context. 05227 pinned it a second time, in a file that does not travel with it, which is the defect here. So the three affected read-backs now assert what this test is about: that the `CREATE` was accepted, that the table exists, and that the engine setting survived the split. Every `CREATE` statement is unchanged, so each world's coverage of the check is preserved, and every `-- { serverError UNKNOWN_SETTING }` assertion is untouched. Full-echo accept coverage of the `default_settings` payload moves to the one route where the split does not run at all, `CREATE ... AS SELECT`, which returns through `if (create_query->select)` before either loop. The result is correct with and without df3cad1, verified against both a master build and a build with that commit reverted in the working tree. Three comments that made split-dependent claims are rewritten. Co-Authored-By: Claude Opus 5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings), plus my own cold review of
Re-derived independently rather than taken from the change: Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20260920-082000 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20260920-075200 |
|
Workflow [PR], commit [51e07b3] Summary: ✅ AI ReviewSummaryThis PR narrows Final Verdict✅ No findings. |
1d7d23f
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required (test-only change).
Description
05227_storage_settings_unknown_nameis mine (#120898) and has been red onmasterin 12+ stateless flavours since #118423 merged. CI reportThe test asserts which
SETTINGSnames theFile/URL/S3/Log-family check rejects. Three of its expected lines also pinned, through a fullSHOW CREATE TABLEecho, where an acceptedname = DEFAULTquery-setting reset ends up in the stored clause.df3cad127e7eof #118423 deliberately moved that: a second loop overASTSetQuery::default_settingsinInterpreterSetQuery::applySettingsFromQueryapplies such a reset to the query context and erases it from the clause. The stale expectation is mine.That placement already has a test which travels with the behaviour:
05099_create_database_with_inline_disk, added by #118423, pins the hoisted clause plus asystem.query_logread-back proving the reset reaches the context. 05227 pinned it a second time from a file that does not travel with it; the revert #121144 correctly deletes 05099, and would leave 05227 behind.So the three affected read-backs now assert what this test is about: the
CREATEwas accepted, the table exists, and the engine setting survived the split. EveryCREATEstatement is unchanged and everyserverError UNKNOWN_SETTINGarm untouched. Full-echo accept coverage of thedefault_settingspayload moves to the one route where the split never runs,CREATE ... AS SELECT. Asserting a projection ofsystem.tables.create_table_queryinstead of diffing a full echo is the established in-tree shape for this (05071_alter_constraint_array_join_no_op,05136_alter_modify_setting_default).It is green in both worlds, measured rather than argued: against
master, and against a build withdf3cad127e7ereverted in the working tree. Pristine test: FAIL on master, OK reverted. This change: OK on both, so it unblocks master now and costs nothing if #121144 lands.Workflow [PR]
Sync PR [sync-upstream/pr/121163]
Version info
26.10.1.289-master(included in26.10and later)