You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit efb8f9e
Browse filesBrowse the repository at this point in the historyBrowse files
Port the value-less setting guards for raw engine-settings readers from #111994
Some engines read the `SETTINGS` clause of their definition directly from
`ASTStorage::settings->changes` instead of applying it to a `BaseSettings`
schema, so nothing rejected the value-less form `SETTINGS name` for them:
`Join` silently turned `SETTINGS max_rows_in_join` into `max_rows_in_join = 1`,
and the String readers (`disk`/`storage_policy` of the Log family,
`keeper_path` of the queue engines) reported `BAD_GET` from `safeGet` at the
wrong layer. Ported from `parser-standalone-v3` (#111994):
* a `BaseSettingsHelpers::throwValuelessSettingIsNotBool` overload for callers
that have no type name to report, and `SettingsChanges::tryGetChange` for
consumers that also have to look at `shorthand`;
* guards in `registerStorageJoin`, `getDiskName` of the Log family, and
`createQueueStorage`;
* `InterpreterSetQuery::applySettingsFromQuery` checks the shorthand before
the constraint check converts the value, and moves the change to the context
through `applySettingChange` so the `shorthand` flag is not dropped;
* tests `04663_setting_boolean_shorthand_in_create_settings` and
`04664_setting_boolean_shorthand_raw_engine_settings`.
This makes #112067's containment of #111994 complete.
Co-Authored-By: Claude Fable 5 <[email protected]>
0 commit comments