Skip to content

Reject a SETTINGS name that is not a setting at all for File, URL, S3 and the Log family - #120898

Merged
alexey-milovidov merged 5 commits into
ClickHouse:masterfrom
groeneai:groeneai/reject-unknown-storage-setting-name
Sep 19, 2026
Merged

alexey-milovidov merged 5 commits into
ClickHouse:masterfrom
groeneai:groeneai/reject-unknown-storage-setting-name

Conversation

@groeneai

@groeneai groeneai commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Backward Incompatible Change

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

CREATE TABLE now rejects a SETTINGS name that is neither a setting of the table engine nor a query setting for the File, URL, S3 (with COSN, OSS, GCS), AzureBlobStorage, HDFS, Log, TinyLog and StripeLog engines, with UNKNOWN_SETTING, as MergeTree already did. The name = DEFAULT and param_name = value spellings are rejected too, except where the whole clause is dropped before any engine sees it. Such a name used to be accepted, stored in the table metadata and never read, so a typo like input_format_csv_delimiter for format_csv_delimiter silently did nothing. A table whose stored definition already names a non-setting still loads. Closes #120705.

Description

CREATE TABLE t (a UInt64) ENGINE = File(CSV) SETTINGS not_a_setting_at_all = 1 succeeded, and SHOW CREATE TABLE kept the name forever, unread.

Root cause. InterpreterSetQuery::applySettingsFromQuery moves a name that is a query setting but not an engine setting into the query context, on the paths where it runs. Most engines reject what is left; eleven do not. File, URL and the object-storage creators apply the clause to a discarded copy of the query Settings; the Log family reads only disk/storage_policy.

Change. One shared checkStorageSettingNames, called first in those 7 creators, rejecting a name that is neither an engine builtin nor a query setting the context holds: the split loop's exact complement, so aliases, obsolete and format names stay accepted. All three payloads are walked: name = DEFAULT and param_x = 1 land in default_settings and query_parameters, both persisted. Only a fresh definition is judged, so stored metadata still loads; the freshness gate mirrors registerStorageMergeTree.cpp, so no Replicated secondary refuses what its initiator committed. Not a blanket check in StorageFactory::get: TimeSeries, S3Queue/AzureQueue and DeltaLakeLocal accept non-settings by design; param_x stays accepted elsewhere, MergeTree included.

Compatibility cost: CREATE TABLE t AS old_table copies a stored ASTStorage into a fresh CREATE, so it now fails if old_table names a non-setting; restate it from SHOW CREATE TABLE without the name. Retag to Backward Incompatible Change if you prefer.

Validation. Three new stateless tests cover the rejection on all eleven engine names with acceptance controls, stored-definition tolerance, and the replicated replay boundary. All three fail on master and pass here, and the affected file|url|s3|log_family stateless suites show no regression.


Workflow [PR]
Sync PR [sync-upstream/pr/120898]

Version info

  • Merged into: 26.10.1.149 (included in 26.10 and later)

groeneai and others added 3 commits September 18, 2026 15:13
… and the Log family

`CREATE TABLE t (a UInt64) ENGINE = File(CSV) SETTINGS not_a_setting_at_all = 1`
succeeded, stored the name in the table metadata, and nothing ever read it.
`MergeTree`, `Memory` and `Set` refuse the same statement. The cost is a typo that
never announces itself: `format_csv_delimiter` is a setting, `input_format_csv_delimiter`
is not one anywhere, and a table declaring the latter was created without complaint
and did not do what its definition appeared to say.

`InterpreterSetQuery::applySettingsFromQuery` splits the clause, moving to the query
context every name that is not a setting of this engine but is a query setting. What
survives with the engine is therefore exactly "neither an engine setting of this engine
nor a query setting". Around 35 engines reject that residue through
`<X>Settings::loadFromQuery`, whose settings struct forbids custom settings. Eleven
engine names do not, in two shapes: `File`, `URL` and the object-storage creators apply
the residue to a copy of the query `Settings` (the one struct declared
`DECLARE_SETTINGS_TRAITS_ALLOW_CUSTOM_SETTINGS`, so an unknown name becomes a custom
field) and discard the copy a few lines later, while the `Log` family never reads any
name but `disk`/`storage_policy`. Values were always validated; only names fell through.

`checkStorageSettingNames` rejects a name that is neither an engine builtin, per the
engine's registered `has_builtin_setting_fn`, nor `Settings::hasBuiltin`. That is the
split loop's exact complement, so it cannot fire on a name the loop would have hoisted,
and aliases, obsolete settings and format settings all stay accepted. It is called from
the seven creators covering those eleven names rather than once in `StorageFactory::get`,
because three engines accept names that are settings nowhere by design and a blanket
check regresses them: `S3Queue`/`AzureQueue` strip `current_shard_num`/`total_shards_num`,
`TimeSeries` skips validation for an unsupported schema version on `ATTACH` (asserted by
`04613_timeseries_future_version.sh`), and `DeltaLakeLocal` loads `DataLakeStorageSettings`
while registering `StorageObjectStorageSettings::hasBuiltin`, so its documented
`SETTINGS disk = ...` would break. The `URL` call sits before
`tryDispatchURLEngineByScheme` so a scheme-delegated definition is judged under `URL`'s
own settings.

Rejection is limited to a definition supplied now, so stored metadata keeps loading and
an existing table still attaches after a downgrade. The four-term gate mirrors
`registerStorageMergeTree.cpp`: `mode` alone cannot separate user input from a replay,
because a `Replicated` database replays a full-definition `ATTACH` on every secondary
under `LoadingStrictnessLevel::ATTACH`, a definition re-derived from Keeper arrives as a
plain `CREATE` with no metadata transaction, and Shared Catalog secondaries re-execute the
initiator's DDL. A secondary refusing what the initiator committed would retry its queue
entry forever, so only the execution that judges the definition may refuse it.

`ALTER ... MODIFY SETTING` needs no change: `IStorage::checkAlterIsPossible` already
throws `NOT_IMPLEMENTED` for every engine here, and every engine that does accept it
already rejects an unknown name. Contrary to the issue's premise,
`MergeTreeSettingsImpl::loadFromQuery` does not gate its `UNKNOWN_SETTING` throw on
`is_loading_from_existing_metadata` (`applyChanges` throws unconditionally), so this load
tolerance is new rather than copied.

One user-visible consequence beyond the intended rejection: `CREATE TABLE t AS other`
copies the source table's stored `ASTStorage` into a fresh `CREATE` without passing the
split loop, so it now fails when the source's stored definition carries a bogus name.

Also corrects four comments that were untrue of names, and one claiming that the session's
settings are ignored where the line below it reads the local context.

Closes: ClickHouse#120705

Co-Authored-By: Claude Opus 5 <[email protected]>
An `ASTSetQuery` carries three independent payloads, and a storage `SETTINGS`
clause is parsed by the same parser as a query one: `ParserSetQuery` routes
`name = value` into `changes` and `name = DEFAULT` into `default_settings`, and
`ASTSetQuery::formatImpl` writes the latter back out as `name = DEFAULT`. So
`ENGINE = TinyLog SETTINGS disk = 'default', not_a_setting_at_all = DEFAULT` was
accepted, stored in the table metadata and echoed by `SHOW CREATE TABLE` for the
table's life, unread: the same defect, in a spelling the previous commit did not
cover. `InterpreterSetQuery::applySettingsFromQuery` walks only `changes` too, so
the name is not hoisted to the query context either, and it drops the settings
node only when `changes` ends up empty.

The predicate is unchanged and the message is unchanged; it is now applied to both
payloads through one local lambda. A clause consisting only of resets is dropped
before any engine sees it, so nothing is stored and there is nothing to refuse;
`MergeTree` reads only `changes` as well, which leaves these engines stricter than
it in that one spelling. Closing either would mean editing the split loop.

`chassert(features.has_builtin_setting_fn != nullptr)` records why the pointer may
be dereferenced without a null test: `StorageFactory::registerStorage` refuses to
register an engine that advertises `supports_settings` without the function, and
`StorageFactory::get` refuses a `SETTINGS` clause on an engine that does not
advertise it, so reaching here with a settings node implies both.

Tests. `05227` gains the two rejection arms above plus an acceptance control,
`disk = 'default', max_threads = DEFAULT`, which is the only shape that reaches the
new loop with a real name and therefore keeps the arms from passing by refusing
every reset. It also gains `COSN`, `OSS`, `GCS`, `AzureBlobStorage` and `HDFS`:
`registerStorageAzure` and `registerStorageHDFS` each carry their own call, and
neither line was asserted before, whereas the S3-compatible names and the `Log`
family share a creator with an arm already. `05228` gains `CREATE TABLE ... AS` over
a table whose stored definition names a non-setting, which is the one path where a
pre-existing table makes a new statement fail. `05229` drops `no-ordinary-database`,
copied from the template it was modelled on: it creates its own `Replicated`
database and its `ATTACH` names it explicitly, so the engine of the ambient database
is irrelevant.

Co-Authored-By: Claude Opus 5 <[email protected]>
Condense the four new comment blocks to the pre-existing properties a reader cannot derive locally, and drop the one narrating the URL call's placement.
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-request PR origin: a maintainer pinged or directed groeneai labels Sep 18, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review over two rounds, each an independent-model pass (engine: codex) plus my own
cold review of the code before reading the author evidence. 11 findings: 9 AGREE, 2 DISAGREE.
Round 1 bounced 5 back for implementation; round 2 re-reviewed the delta, no blocker and no major.

Round 1 (4 gate findings + 3 of my own)

# Sev Finding Verdict Evidence / action
1 ⚠️ A SETTINGS name written as name = DEFAULT bypasses the new check AGREE, fixed in fix round 1 ParserSetQuery routes it into ASTSetQuery::default_settings, which is serialized back and so persists, and both the split loop and the helper walked changes only. The helper now validates that payload too, with a mixed-clause arm. A clause of resets only is dropped before any engine sees it; MergeTree has the identical gap
2 ⚠️ Five engine names the changelog promises have no rejection assertion (05227) AGREE, fixed in fix round 1 AzureBlobStorage and HDFS each carry their own call and deleting either reddened nothing. Arms added for all five, then each call site proved live by deleting it alone and re-running. The check precedes any configuration object, so no backend is contacted
3 ⚠️ The one path where an existing table breaks a new statement, CREATE TABLE t2 AS t1, is untested AGREE, fixed in fix round 1 My own finding. setEngine copies the source table's stored ASTStorage, which never passes the engine/query split, so the copy is judged fresh; 05228 now asserts it on the fixture already there
4 💡 no-ordinary-database on 05229 is not strictly necessary AGREE, fixed in fix round 1 Copied from the template; nothing in the test depends on the test database's engine. Dropped, confirmed by one --db-engine=Ordinary run whose build_flags line shows the flag took effect
5 💡 checkStorageSettingNames dereferences has_builtin_setting_fn without the guard its only other caller uses AGREE, fixed in fix round 1 My own finding, and unreachable: registerStorage refuses supports_settings without the function, and StorageFactory::get refuses a SETTINGS clause otherwise. Added anyway, the same chassert InterpreterSetQuery.cpp carries
6 ⚠️ 05229 never exercises the secondary-replay exemption it protects DISAGREE The scenario needs a bogus full-definition ATTACH committed into the DDL queue; at one version every route runs through the initiator, which this check rejects (05229 asserts that), leaving a direct ZooKeeper write, outside the SQL surface, or an older binary. The term can only suppress a rejection, so no green-to-red mutation exists; registerStorageMergeTree.cpp ships the identical term untested. Recorded as a known coverage limitation
7 💡 The Bug Fix category omits the acknowledged CREATE TABLE ... AS incompatibility DISAGREE (category), partially adopted Not preserving the AS-copy path, since inheriting a definition is how the typo comes back, and not self-selecting Backward Incompatible Change: the closest CHANGELOG.md precedent on substance, SYSTEM DISABLE FAILPOINT starting to reject a fail point name that does not exist, shipped as Improvement, and the backward-incompatible analogue rejects a configuration users relied on. The body names the cost and invites a retag, which is the reviewer's call; the substantive half is adopted, the body now gives the remedy

Round 2 (1 gate finding + 3 of my own; delta re-review of the fix round)

# Sev Finding Verdict Evidence / action
8 💡 The changelog promised rejection for every name = DEFAULT clause, although a reset-only clause still succeeds AGREE, fixed in the PR text InterpreterSetQuery.cpp resets the whole settings node once changes is empty, so a sole reset reaches the creator with no settings node and is accepted with nothing stored; measured on both binaries. The changelog entry and the issue follow-up now carry the boundary. Code unchanged: closing it means editing the split loop an open PR is already rewriting
9 💡 Both the PR body and the validation-gate comment cited a sweep count from the previous binary AGREE, fixed in the PR text My own finding. 479 was the earlier round's total; the sweep covering this commit is 490 candidates, 444 executed, 0 regressions. Corrected in both, and only the number was changed in the validation-gate comment
10 💡 The short DETACH TABLE / ATTACH TABLE branch of the freshness predicate is argued rather than executed AGREE, noted, not blocking My own finding. The plain re-attach disjunct is uncovered but cannot be fresh: the flag's only two setters are InterpreterCreateQuery and the metadata reader, both on stored definitions
11 💡 An internal note justified the third SETTINGS payload with a mechanism that does not hold AGREE, corrected internally My own finding, and not part of anything published. Internals-only parsing does not stop a param_ name from populating query_parameters; the conclusion holds for another reason, a param_ name is a query parameter and never a setting name, and MergeTree has the identical hole

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are
terminal per finding. Findings on hunks unchanged by a fix round are auto-dropped.

Session id: cron:clickhouse-review-slot-11:20260918-182100

@clickhouse-gh clickhouse-gh Bot closed this Sep 18, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Sep 18, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes, 100%, not "~1%". CREATE TABLE t (a UInt64) ENGINE = File(CSV) SETTINGS not_a_setting_at_all = 1 is accepted and stored on master, one run each for all 11 engine names, and again for the = DEFAULT spelling.
b Root cause explained? Yes. applySettingsFromQuery hoists to the query context every name that is a query setting but not a setting of this engine, so the residue reaching the creator is exactly "neither"; File/URL/object-storage apply that residue to a discarded Settings copy, and the Log family reads only disk/storage_policy.
c Fix matches root cause? Yes. The predicate is the hoist condition's exact complement, applied at the creator that drops the name. No widened bound, no no-random-* tag, no dataset reduction, no guard masking an upstream bug.
d Test intent preserved / new tests added? Yes, no existing test modified. Three new stateless tests, each with a non-vacuous oracle: the tolerance arm asserts its own sed landed, the delimiter arm asserts the file's raw bytes rather than a round trip, and 05229 case 1 reddens on the naive if (metadata_txn) return;.
e Both directions demonstrated? Yes, through the runner, with each binary's Build-ID asserted against the server it ran on: fix ed4d90bd all three [ OK ], base d3d33d55 all three [ FAIL ] with only the rejection lines missing. Each rejection arm was also issued individually on base, since a .sql run aborts at its first mismatch. Two mutation controls: the freshness term forced to false strands a stored definition, and deleting either object-storage call site reddens exactly that engine's arm.
f Fix is general across code paths? Yes. All 11 silently-accepting engine names via 7 call sites, URL's placed before tryDispatchURLEngineByScheme so a URL('s3://...') definition is judged too. Fixed at the creator, not guarded at a symptom. Hudi needs nothing: supports_settings = false, so any clause is already refused.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes on the axes that exist; the subject is a name, so type wrappers do not apply. Name axis tested: aliases (enable_analyzer), obsolete, format and engine settings all stay accepted, and a bad value is still reported as one, not shadowed. Payload axis: changes and default_settings are both walked and both tested, with an acceptance control that keeps the reset arm from passing by refusing every reset. query_parameters, the third payload, cannot carry a setting name here.
h Backward compatible? (maintainer-approved exception only) Deliberately not, in one bounded direction, which is the change commissioned in the issue. Stored definitions keep loading, tested both ways. No SettingsChangesHistory.cpp entry is owed: that file records changes to setting defaults, not validation. CREATE TABLE t AS old_table is the single path where an existing table makes a new statement fail, disclosed in the PR body with its remedy and covered by a test.
i Invariants and contracts preserved? Yes. A read-only pass over changes and default_settings before any storage object exists, throwing where StorageFactory::get's sibling check_feature calls already throw, so it cannot leave a half-built table; no lock taken, nothing reordered. The crash/restart re-entry path is the tolerance arm and is exercised. The four-term gate mirrors registerStorageMergeTree.cpp, preserving the contract that a secondary never refuses what its initiator committed.

Existing-test sweep: the file|url|s3|log_family stateless tests (490 candidates, 444 executed) under a fixed server configuration, with every fix-binary failure absent from the master sweep re-run on master under the identical recipe and failing there too, so regressions = 0. Exhaustively for the reset payload: no existing test in tests/queries/ names anything as = DEFAULT in a storage SETTINGS clause on these engines, and all 15 files using = DEFAULT in any SETTINGS clause were run.

50/50: 150/150 passed with randomized settings, 150/150 with --no-random-settings --no-random-merge-tree-settings. No per-setting clamp was needed.

Session id: cron:clickhouse-impl-slot-4:20260918-163801

@clickhouse-gh

clickhouse-gh Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [8175b68]

Summary: ✅


AI Review

Summary

This PR adds a shared guard that rejects storage SETTINGS names that are neither storage settings nor query settings for File, URL, the affected object-storage engines, and the Log family, and extends that check to the name = DEFAULT and param_* carriers while still allowing previously stored definitions to load. I reviewed the current head, the full PR diff, and the existing discussion threads, and I did not find a remaining correctness or compatibility issue that merits a new inline comment.

Missing context / blind spots
  • ⚠️ I could not directly execute the exact “older server committed an invalid definition, newer secondary replays it” path; 05229_storage_settings_unknown_name_replicated covers the initiator rejection and a valid replicated create, and the replay escape hatch itself is consistent with the existing MergeTree pattern.
Final Verdict

✅ No new inline findings. The previously open bot thread about query_parameters is fixed in the current head and has been resolved.

LLVM Coverage Report

Measured on commit 8175b68.

Metric Baseline Current Δ
Lines 88.40% 88.40% +0.00%
Functions 91.80% 91.80% +0.00%
Branches 80.60% 80.60% +0.00%

Changed lines: Changed C/C++ lines covered: 65/70 (92.86%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Sep 18, 2026
Comment thread src/Storages/StorageFactory.cpp Resolved
@PedroTadim PedroTadim self-assigned this Sep 18, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-special-table-engines Non-MergeTree table engines used to speed up/distribute execution (paper's 2nd category). label Sep 18, 2026
The check rejected a name that `Settings::hasBuiltin` does not know, but the
split loop in `InterpreterSetQuery::applySettingsFromQuery` keeps a name when
`context_settings.has(name)` is false, and `Settings::has` is
`hasBuiltin || hasCustom`. So a custom setting the session or profile holds is a
query setting to the split loop and was an unknown name to the check.

The reset payload is where that mismatch showed: `name = DEFAULT` is never moved
to the query context, so after `SET custom_x = 1`,

  CREATE TABLE t (a UInt64) ENGINE = TinyLog
  SETTINGS disk = 'default', custom_x = DEFAULT

was accepted on master and threw `UNKNOWN_SETTING` here. `CREATE ... AS SELECT`
skips the move altogether, so `custom_x = 1` regressed the same way. The default
server config registers the `SQL_` prefix, so this is reachable without extra
configuration.

Using `Settings::has` makes the predicate the split loop's exact complement, so
it can only ever accept more than before. A custom name the context does not
hold is still rejected: the split loop leaves it behind and no engine reads it,
which is the case this check is for.
Comment thread src/Storages/StorageFactory.cpp Resolved
A `SETTINGS` node carries three payloads and the check walked two of them.
`ParserSetQuery::parseNameValuePairWithParameterOrDefault` routes a `param_`
prefixed entry into `query_parameters` with the prefix stripped, and
`ASTSetQuery::formatImpl` writes it back as `param_x = '1'`, so

  CREATE TABLE t (a UInt64) ENGINE = TinyLog
  SETTINGS disk = 'default', param_x = 1

was created and kept that clause in `SHOW CREATE` and in the stored metadata,
on every engine this check covers.

Only a standalone `SET` declares a query parameter
(`InterpreterSetQuery::execute`), so the name stored in a storage clause is read
by nothing: `SETTINGS disk = 'default', param_x = 1 AS SELECT {x:UInt8}` fails
with `Substitution 'x' is not set`. `isEmptySetQuery` in `executeQuery.cpp`
already treats the three payloads as one enumeration, for the same reason.

Alone in the clause the whole node is dropped before any engine sees it, so the
`AS SELECT` path, where the split does not run, is what reaches the check with
that payload alone.
@clickhouse-gh

clickhouse-gh Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 8175b68e4 with master b810ea7fc (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Object file sizes

8 object files changed (+34.50 KiB total), 0 added.

Object file Master PR Δ
src/CMakeFiles/dbms.dir/Storages/StorageFactory.cpp.o 144.56 KiB 178.45 KiB +33.89 KiB (+23.44%)

716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.

Compile time of recompiled translation units

175 translation units recompiled, 1499 s compile time in total, 175 of them have a recent master baseline.

Job report

@alexey-milovidov alexey-milovidov self-assigned this Sep 19, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Sep 19, 2026
Merged via the queue into ClickHouse:master with commit 5a987c4 Sep 19, 2026
176 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 19, 2026
qiuyanjun888 pushed a commit to qiuyanjun888/ClickHouse that referenced this pull request Sep 20, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Sep 21, 2026
…ight

checkStorageSettingNames accepted a `param_x` entry whenever the context held a
query setting of that name. For the changes and default_settings payloads that
predicate is right: InterpreterSetQuery::applySettingsFromQuery takes a
query-setting name out of the clause and applies it to the context, so the name
does something. It takes nothing out of query_parameters, which it leaves in the
clause on purpose so that the engine reports it, and no engine reads that
payload, so a name there cannot do anything whatever it is called.

The predicate therefore reopened, for one name, the hole this branch closes.
With custom_settings_prefixes containing `param_` and a profile defining a
custom setting `param_x`, measured before this commit:

    CREATE TABLE d (a Int) ENGINE = MergeTree ORDER BY a
        SETTINGS index_granularity = 4096, param_x = 1
    -> accepted, stored as `..., param_x = '1'`, and ignored

That holds for every creator calling the helper, File and the other engines of
ClickHouse#120898 included, so the fix belongs in the helper rather than at the MergeTree
call site. A table whose stored definition already names one still loads: the
freshness gate is untouched, and three tables created that way on the previous
commit's binary re-ATTACH and load on this one's.

An integration test rather than a stateless one, because reaching the hole needs
`param_` registered as a custom-settings prefix, which is server configuration.
Its first assertion is that the custom setting is live, without which the
rejection it checks would hold on any server.

Raised by the automated review of ClickHouse#121394.

Co-Authored-By: Claude Opus 5 <[email protected]>
alexey-milovidov added a commit to Onyx2406/ClickHouse that referenced this pull request Sep 23, 2026
…-field-id

Conflicts: master reworded the format-settings comments in `StorageFile.cpp`,
`StorageURL.cpp` and `registerStorageObjectStorage.cpp` (ClickHouse#120898), where this PR
replaced the blocks with `getFormatSettingsForTableDefinition` — kept the PR code and
carried master's "validates the values, not the names" wording into that helper.
`FormatFactory.{h,cpp}` and `SettingsChangesHistory.cpp`: kept both sides. Master is
now 26.10, so the two new settings records move to the `26.10` block.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@fm4v fm4v added pr-backward-incompatible Pull request with backwards incompatible changes and removed pr-bugfix Pull request with bugfix, not backported by default labels Oct 5, 2026
@clickhouse-gh clickhouse-gh Bot added comp-ddl DDL command coordination and execution (ON CLUSTER, DDL queue). and removed comp-special-table-engines Non-MergeTree table engines used to speed up/distribute execution (paper's 2nd category). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-ddl DDL command coordination and execution (ON CLUSTER, DDL queue). groeneai-origin-request PR origin: a maintainer pinged or directed groeneai pr-backward-incompatible Pull request with backwards incompatible changes pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A SETTINGS name that is not a setting at all is silently accepted and stored by File, URL, S3 and the Log family

5 participants