Repository navigation
Docs: document ALTER TABLE ... EXECUTE, MOVE PART ... TO SHARD, SHOW PRIVILEGES and other statements - #131673
Docs: document ALTER TABLE ... EXECUTE, MOVE PART ... TO SHARD, SHOW PRIVILEGES and other statements#131673groeneai wants to merge 5 commits into
Conversation
…PRIVILEGES and other statements Add reference documentation, through the source registrations the docs generator reads, for statements that parse on master but had no reference section: - ALTER TABLE ... EXECUTE: a new ALTER sub-page (registration in ParserAlterQuery, a row in the ALTER overview). Only Iceberg tables implement commands (expire_snapshots since v26.3, remove_orphan_files since v26.4, both experimental); other engines throw NOT_IMPLEMENTED. The command details stay on the iceberg table function page, which the new page links. - ALTER TABLE ... MOVE PART ... TO SHARD: a section of the PARTITION page. Experimental (MergeTree setting part_moves_between_shards_enable of the source table), ReplicatedMergeTree only, needs part UUIDs, only schedules the move (system.part_moves_between_shards). - SHOW MASKING POLICIES (Cloud only) and SHOW PRIVILEGES: two sections at the end of the SHOW page, so no existing anchor is renumbered. The SHOW POLICIES syntax line gains the name filter the parser accepts. - DESCRIBE FILESYSTEM CACHE: its own page (the parser gains getDocumentation and is registered), since it describes a cache, not a table; a DESCRIBE TABLE section would also turn that page into a full-page description. - COPY ... TO STDOUT / FROM STDIN: a section of the hand-written PostgreSQL interface page, because only the PostgreSQL protocol runs COPY (the native and HTTP interfaces return UNKNOWN_TYPE_OF_QUERY). Each page states when the statement was introduced (first release tag that contains the parser code) and marks experimental features with the ExperimentalBadge and a Note naming the enabling setting. Every behaviour stated was observed on a server built from this branch. Generated regions are left empty; the nightly regeneration fills them. Related: ClickHouse#131085 Co-Authored-By: Claude Opus 5.5 <[email protected]>
- `SHOW PRIVILEGES` is in the first 20.5 release (v20.5.2.7-stable), and `MOVE PART ... TO SHARD` in the first 21.7 release (v21.7.2.7-stable). The earlier probe read the first `-testing` tag of each series, which was cut before these merges. - `ALTER TABLE ... EXECUTE` on a non-Iceberg table: MergeTree throws `NOT_IMPLEMENTED`, while Delta Lake, Hudi and Paimon tables reach the base `IDataLakeMetadata::executeCommand`, which throws `UNSUPPORTED_METHOD`. Say "throws an exception" instead of naming one code. - The `MOVE PART ... TO SHARD` example now creates the `shard1` and `shard2` databases it uses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`PostgreSQLHandler::processParseQuery` rejects any `COPY` in a `Parse` message, because the CopyIn/CopyOut exchange exists only on the simple-query path. The client sees SQLSTATE `2F000` with the message "COPY is not supported in extended PostgreSQL protocol queries" (the `NOT_IMPLEMENTED` code is not sent), so the page quotes the message. Observed with psql 16 `\bind \g` for both `TO STDOUT` and `FROM STDIN`; `psql -c`, `\copy` and psycopg 3 `cursor.copy` send a simple query and work. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 3 rounds, 4 findings) plus my own review (3 rounds).
Severity: ❌ blocker / |
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20261114-154300 |
|
Workflow [PR], commit [4e23dee] Summary: ❌
AI ReviewSummaryDocuments Final VerdictStatus: ✅ Approve |
CI finish ledger - 11e1b01Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261114-223011 |
Master enabled the clang-tidy check modernize-use-nodiscard (ClickHouse#126158), and the new override declaration lacked the attribute, so Build (arm_tidy) would fail on the merge commit, as it did on master for ParserTransactionControl.h. Co-Authored-By: Claude Opus 5.5 <[email protected]>
CI finish ledger - b564fdbEvery failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261116-030011 |
Related: #131085
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Document
ALTER TABLE ... EXECUTE,ALTER TABLE ... MOVE PART ... TO SHARD,SHOW MASKING POLICIES,SHOW PRIVILEGES,DESCRIBE FILESYSTEM CACHEand the PostgreSQLCOPY ... TO STDOUT/COPY ... FROM STDINstatements.Description
Last of the PRs for the statements without reference documentation that @ Blargian asked for in #131085. All of them parse on master but had no reference section.
ALTER TABLE ... EXECUTE: newALTERsub-page. Only Iceberg tables implement commands (expire_snapshotssince v26.3,remove_orphan_filessince v26.4, both experimental); the command details stay on theicebergtable function page, which the page links.MOVE PART ... TO SHARD: new section of theALTER TABLE ... PARTITIONpage (experimental,part_moves_between_shards_enable).SHOW MASKING POLICIES(Cloud only) andSHOW PRIVILEGES: new sections at the end of theSHOWpage, so no existing anchor is renumbered. TheSHOW POLICIESsyntax line gains the name filter the parser accepts.DESCRIBE FILESYSTEM CACHE: its own page (the parser gainsgetDocumentationand is registered), since it describes a cache, not a table.COPY: new section of the hand-written PostgreSQL interface page, because only that protocol runs it (native and HTTP returnUNKNOWN_TYPE_OF_QUERY).MOVE PART ... TO SHARDandCOPY ... FROM STDINwere not in the earlier list. Each page states the version the statement was introduced in (first release tag with the parser code) and marks experimental features with the badge and a note naming the setting.Validation: every behaviour and example was observed on a server built from this branch. I regenerated the pages with
autogenerate_docs.py --write --only 'statement:'and ranlychee_check.py --mode links(0 errors),navigation_check.py,mint validate(no finding on these pages) andcheck_autogenerated_regions.py, each also with a corrupted input that it reports; links inside<Note>, which lychee skips, were resolved by a script. The committed tree contains no generated text.04926_system_statementsfails without the two new reference lines and passes with them.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131673]