Repository navigation
Docs: clarify CLONE AS statement - #118620
Conversation
|
Workflow [PR], commit [aa09044] Summary: ✅
AI ReviewSummaryThis PR updates the Findings💡 Nits
Final Verdict✅ No blocking issues found, but the LLVM Coverage ReportMeasured on commit aa09044.
Changed lines: Changed C/C++ lines covered: 14/14 (100.00%) · Uncovered code |
| <Note> | ||
| `CLONE AS` is not supported when the destination database uses the [Replicated](/reference/engines/database-engines/replicated) database engine. | ||
|
|
||
| Instead use: |
There was a problem hiding this comment.
The new note documents CREATE TABLE ... AS ...; ALTER TABLE ... ATTACH PARTITION ALL FROM ...; as the workaround for CLONE AS in Replicated databases, but the actual exception for this case still says Consider using separate CREATE and INSERT queries. in src/Interpreters/InterpreterCreateQuery.cpp:2127. Since CLONE AS itself is implemented by issuing ATTACH PARTITION ALL FROM later in the interpreter (src/Interpreters/InterpreterCreateQuery.cpp:3181-3205), the docs and the runtime diagnostic now point users to different replacement flows. Please align the exception text in the same change so the user-facing guidance stays consistent.
There was a problem hiding this comment.
@Blargian - what do you think about the scope here with this suggestion? I've run into similar. I argue that this change is not necessary to make the documentation accurate, and that changing runtime output is probably better suited to a separate change.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units7 translation units recompiled, 8 s compile time in total, 7 of them have a recent master baseline. |
Based on testing the statement is not true:
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/118620]
Version info
26.9.1.1078(included in26.9and later)