Repository navigation
Docs: document ALTER DATABASE ... MODIFY SETTING - #131085
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Workflow [PR], commit [698f016] Summary: ✅
AI ReviewSummaryPR #131085 documents Final VerdictStatus: ✅ Approve. |
Include `ALTER DATABASE ... MODIFY SETTING` in the registered statement list. #131085 https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=131085&sha=a1b9834b457622170f88633b2ec60e7f540f1f9c&name_0=PR&name_1=Fast%20test
|
@groeneai could you check if there are any other statements like this one that we are missing? |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units7 translation units recompiled, 6 s compile time in total, 7 of them have a recent master baseline. |
|
I compared what the parser accepts on master ( No reference page at all
Missing from an existing page
Probably fine to leave out
|
@groeneai Please add this documentation. Make sure to mention on a page when something is experimental and which version it was introduced in. |
|
Acknowledged. I'm working on reference documentation for the statements in that list, stating on each page when a statement is experimental (with the setting that enables it) and the version it was introduced in. Given the number of statements, I'll split it into a few PRs by statement family and link them here. |
|
I opened #131653 for |
|
The first docs PR is open: #131664 It adds a The other families follow as four separate PRs, and I will post each link here: the I am leaving out the test and debug helpers, |
|
I opened #131673 for |
|
I opened #131672 for |
|
I opened #131679 for the |
Add sections to the SYSTEM reference page (documentation["SYSTEM"] in ParserSystemQuery.cpp) for the statements that parse but had no section: RELOAD DELTA KERNEL TRACING, RESTART DISK, CLEAR|DROP SCHEMA CACHE, FLUSH ASYNC INSERT QUEUE, RECONNECT ZOOKEEPER, RESET DDL WORKER, JEMALLOC PURGE / FLUSH PROFILE / ENABLE|DISABLE PROFILE, SCHEDULE MERGE, SYNC MERGES, STOP|START CLEANUP, STOP|START VIRTUAL PARTS UPDATE, STOP|START REDUCE BLOCKING PARTS, UNLOCK SNAPSHOT, WAIT QUERY RUNNER and SYNC TRANSACTION LOG, and their forms to the syntax summary. Each section has an "Introduced in" line (the first release whose ASTSystemQuery.h has the statement), the ExperimentalBadge where the statement needs an experimental setting, a Cloud-only note for the three statements that do nothing or fail in open-source builds, and the required privilege. Every behaviour sentence was observed on a server built from this branch. Related: ClickHouse#131085 Co-Authored-By: Claude Opus 5.5 <[email protected]>
- RESTART DISK was introduced in 21.6 (the first 21.6 release tag, v21.6.2.7-prestable, has it; v21.5.9.4-stable does not). - RESET DDL WORKER only requests the reset: the DDLWorker thread performs it later, the statement returns at once. - UNLOCK SNAPSHOT and JEMALLOC FLUSH PROFILE state their own privilege. - SCHEDULE MERGE: the parts must be adjacent parts of one partition, in order; a list that is not is never merged and holds back the merges scheduled after it (ManualMergeSelector selects only a contiguous run of one parts range and stops at the first entry it cannot select). Related: ClickHouse#131085 Co-Authored-By: Claude Opus 5.5 <[email protected]>
- FLUSH ASYNC INSERT QUEUE: with a table list the statement waits only for the batches it takes from the queue itself (AsynchronousInsertQueue::flush), while flushAll also waits for in-flight flushes and the pool; an insert whose data does not parse is dropped and logged to system.asynchronous_insert_log, and the statement still succeeds (observed). - SCHEDULE MERGE: TTL merges are chosen before the manual selector (MergeSelectorApplier::chooseMergesFrom), so they still run on a 'Manual' table (observed TTLDropMerge); a scheduled range must also pass the regular merge size constraints (checkPreparedRangeAgainstConstraints, observed with max_bytes_to_merge_at_max_space_in_pool = 1); the schedule lives in a process-local registry and is lost on restart (observed: SYNC MERGES returns at once after a restart, parts unmerged). - STOP|START CLEANUP: CloudNotSupportedBadge, StorageSharedMergeTree has no ActionLocks::Cleanup lock. - UNLOCK SNAPSHOT: the FROM destination is authorized against SOURCES grants (READ on S3/AZURE), like RESTORE. Related: ClickHouse#131085 Co-Authored-By: Claude Opus 5.5 <[email protected]>
- RESTART DISK: refreshDataPartsOnce only adds the parts that appeared since the last scan (it seeds parts absent from data_parts_by_info) and does not detect removed ones (observed: a part dropped by the writer stays in the read-only reader's system.parts after the statement). - SCHEDULE MERGE: the ManualMergeSelector registry is keyed by database, table and uuid and renameInMemory does not re-key it, so a table or database rename also loses the schedule (observed: SYNC MERGES returns at once after either rename, parts unmerged). - UNLOCK SNAPSHOT: a FROM destination given as a named collection is resolved through BackupInfo::getNamedCollection, which also checks NAMED COLLECTION. Related: ClickHouse#131085 Co-Authored-By: Claude Opus 5.5 <[email protected]>
- SCHEDULE MERGE: the ManualMergeSelector registry entry is keyed by database, table and uuid and is erased only when the table is dropped, so a rename does not lose the schedule: it is not performed under the new name and applies again once the table gets its old name back (observed for both a table and a database rename: no merge under the new name, the scheduled merge runs at once after the rename back). - STOP CLEANUP: getCleanupLock only cancels the blocker, which the cleanup thread checks before each iteration, so a running iteration finishes after the statement returns (observed with the storage_merge_tree_background_clear_old_parts_pause fail point: the grabbed parts were removed after STOP CLEANUP, later outdated parts stayed). Statements such as DROP PART remove outdated parts themselves, so only the background cleanup is described as stopped. Related: ClickHouse#131085 Co-Authored-By: Claude Opus 5.5 <[email protected]>
- JEMALLOC FLUSH PROFILE: InterpreterSystemQuery::execute hands any query with ON CLUSTER to executeDDLQueryOnCluster before building the filename pipeline, so each server writes its own profile file and the initiator returns the distributed DDL status, as selected by distributed_ddl_output_mode (observed: header host, port, status, error, num_hosts_remaining, num_hosts_active, no filename; nothing with `none`; the server still wrote its .heap file). - RELOAD DELTA KERNEL TRACING: without USE_PARQUET && USE_DELTA_KERNEL_RS the statement throws SUPPORT_IS_DISABLED "Delta Kernel support is not enabled", the same note the JEMALLOC sections carry for builds without jemalloc. Related: ClickHouse#131085 Co-Authored-By: Claude Opus 5.5 <[email protected]>
ALTER DATABASE ... MODIFY SETTINGis implemented but has no dedicated SQL reference entry. Add its source documentation with syntax, the required privilege, engine-specific restrictions, and anAtomicexample usingmax_tables. Link it from theALTERoverview and reference navigation.The new page contains frontmatter and empty generation markers; the dedicated documentation autogeneration workflow will populate its body from the source documentation.
Validation:
git diff --check, navigation JSON parsing, documentation link targets, heading anchors, and the page title matching the statement registration. No build or runtime tests were run for this documentation-only change.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Document
ALTER DATABASE ... MODIFY SETTINGin the SQL reference.Workflow [PR]
Sync PR [sync-upstream/pr/131085]
Version info
26.11.1.2143-master(included in26.11and later)