Repository navigation
Document that the Remote engines take SETTINGS after the engine definition - #112884
Merged
Merged
Conversation
…efinition Follow-up to #112670, which added a trailing `SETTINGS` clause to the arguments of the `remote`, `remoteSecure`, `cluster` and `clusterAllReplicas` table functions. The `remote` documentation states that the same parameters can be used with the `Remote` and `RemoteSecure` table engines, so after that change it implied that `ENGINE = Remote(..., SETTINGS skip_unavailable_shards = 1)` is valid. It is not: engine arguments are parsed by `ParserStorage` in the non-table-function mode and `registerStorageRemote` reads the settings from `storage_def->settings`, so the inner clause is a syntax error. The engines take exactly the same settings, but after the engine definition: ```sql CREATE TABLE t ENGINE = Remote('127.0.0.1', system, one) SETTINGS skip_unavailable_shards = 1 ``` Document the difference on both sides - the table-function page and the `Remote`/`RemoteSecure` engine description - instead of adding a second syntax to the engines, and add a test for the engine form, which was not covered.
Contributor
|
Workflow [PR], commit [2634410] Summary: ✅
AI ReviewSummaryThis PR corrects the user-facing documentation for Final Verdict✅ Approve. No new findings. |
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
…ngine docs block
The `Documentation{}` block registered for the `Distributed` engine embeds its
own copy of the `### Remote and RemoteSecure engines` section, which is the
surface actually published for that engine. It still showed
`ENGINE = Remote(...)` without the trailing `[SETTINGS ...]` and did not explain
that the `remote` and `remoteSecure` table functions take `SETTINGS` inside
their argument list instead, contradicting the rest of this change.
Contributor
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 37/37 (100.00%) · Uncovered code |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #112670, addressing the review finding that was left open there (the author asked to hand it over after the merge).
That PR added a trailing
SETTINGSclause to the arguments of theremote,remoteSecure,clusterandclusterAllReplicastable functions. Theremotepage states that "the same parameters can be used with theRemoteandRemoteSecuretable engines", which after that change implied thatENGINE = Remote(..., SETTINGS skip_unavailable_shards = 1)is valid. It is not: engine arguments are parsed byParserStoragein the non-table-function mode, andregisterStorageRemotereads the settings fromstorage_def->settings.The engines already accept exactly the same settings, only after the engine definition, so this documents the difference on both sides - the table-function page and the
Remote/RemoteSecureengine description - rather than adding a second syntax to the engines. The engine form was not covered by a test; one is added.Related: #112670
Related: #112653
Changelog category (leave one):
Version info
26.8.1.653(included in26.8and later)