Skip to content

Add embedded documentation for database engines - #106178

Merged
alexey-milovidov merged 14 commits into
masterfrom
database-engine-documentation
Jun 14, 2026
Merged

alexey-milovidov merged 14 commits into
masterfrom
database-engine-documentation

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented May 31, 2026 •

Copy link
Copy Markdown
Member

This is the second PR in the series that adds embedded, runtime-introspectable documentation to ClickHouse component registries. The first (#106177) did this for table engines; this one does it for database engines.

What it does:

  • Attaches the shared Documentation struct (introduced in Add embedded documentation for table engines #106177, src/Common/Documentation.h) to every database engine via DatabaseFactory::registerDatabase.
  • system.database_engines now exposes description, syntax, examples, introduced_in, and related columns (previously it had only name).
  • For every engine that has a dedicated documentation page under docs/en/engines/database-engines/ — Atomic, Replicated, MySQL, PostgreSQL, MaterializedPostgreSQL, SQLite, Backup, DataLakeCatalog — the complete Markdown body of that page is embedded verbatim into the description field, so that the standalone Markdown files can later be dropped and regenerated from the embedded documentation. Engines without a dedicated page (Memory, Ordinary, Dictionary, Filesystem, S3, HDFS) keep a concise description.

Note: this PR shares the Documentation struct (src/Common/Documentation.h/.cpp) with #106177. Whichever merges first, the other will have a trivial add/add for those two files.

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Database engines now carry embedded documentation, introspectable via the new description, syntax, examples, introduced_in, and related columns of the system.database_engines table.

Documentation entry for user-facing changes

  • Documentation is provided as part of this change (embedded documentation in system.database_engines and an updated system.database_engines system-table page).

Version info

  • Merged into: 26.6.1.775

Attach the shared `Documentation` struct (introduced for table engines) to
database engines via `DatabaseFactory::registerDatabase`, and expose
`description`, `syntax`, `examples`, `introduced_in`, and `related` columns on
`system.database_engines`.

For every engine that has a dedicated documentation page under
`docs/en/engines/database-engines/` (`Atomic`, `Replicated`, `MySQL`,
`PostgreSQL`, `MaterializedPostgreSQL`, `SQLite`, `Backup`, `DataLakeCatalog`),
the complete Markdown body of that page is embedded verbatim into the
`description` field, so the standalone Markdown files can later be dropped and
regenerated from the embedded documentation. Engines without a dedicated page
(`Memory`, `Ordinary`, `Dictionary`, `Filesystem`, `S3`, `HDFS`) keep a concise
description.

This is a follow-up to the same change for table engines and reuses the
`Documentation` struct from `src/Common/Documentation.h`.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented May 31, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [64398d8]

Summary: ✅


AI Review

Summary
  • This PR adds embedded Documentation metadata to database engine registrations and exposes it through new system.database_engines columns. The plumbing is consistent, but two newly user-visible documentation examples still publish SQL that cannot be copied successfully, so I would request changes before merge.
Findings

⚠️ Majors

  • [src/Databases/DatabaseAtomic.cpp:967] The Atomic runtime documentation says the metadata-disk setting is used for database metadata, but the example is a CREATE TABLE statement using the database engine Atomic as a table engine. Users querying system.database_engines.description and copying it get a parser exception instead of a database using the configured metadata disk. Make this a CREATE DATABASE ... ENGINE = Atomic SETTINGS disk=... example here and in docs/en/engines/database-engines/atomic.md.

  • [src/Databases/DataLake/DatabaseDataLake.cpp:1191] The OneLake DataLakeCatalog example is exposed via system.database_engines.description, but warehouse = warehouse and the following settings use bare identifiers where the settings parser expects literal values. The example fails before DatabaseDataLakeSettings::loadFromQuery can create the database. Quote the placeholder values here and in docs/en/engines/database-engines/datalake.md, for example warehouse = 'warehouse', onelake_tenant_id = 'tenant_id', and the remaining string settings likewise.

Final Verdict

Status: ⚠️ Request changes

Minimum required actions: fix the two invalid runtime documentation examples and keep the embedded strings in sync with the standalone Markdown pages.

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label May 31, 2026
Comment thread src/Databases/MySQL/DatabaseMySQL.cpp Resolved
alexey-milovidov and others added 2 commits June 1, 2026 04:32
- Strip trailing whitespace from the embedded Markdown documentation in
  `DatabaseAtomic.cpp` and `DataLake/DatabaseDataLake.cpp` (style check).
- Restrict `04300_database_engines_documentation` to engines that are always
  compiled in (`Atomic`, `Replicated`, `Memory`): the `Fast test` build does
  not include the `MySQL` and `PostgreSQL` database engines, so those rows are
  absent from `system.database_engines`.
- Remove `MaterializedMySQL` from the `related` engines of `MySQL`: it is not
  registered in `DatabaseFactory` and cannot be resolved through
  `system.database_engines`. Add a regression assertion that every `related`
  value of an always-present engine is itself a registered engine.
- Update the `system.database_engines` documentation example to `SELECT name`
  so the shown response shape matches the query.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Comment thread src/Databases/DatabaseFilesystem.cpp Resolved
alexey-milovidov and others added 2 commits June 2, 2026 18:22
- Normalize the indentation of the embedded `OneLake Catalog` example in
  `DatabaseDataLake.cpp` (and the source `datalake.md`) to multiples of 4,
  so the C++ style check no longer flags the verbatim Markdown that lives
  inside a raw string literal. Indentation inside a fenced ```sql``` block
  is cosmetic, and the bullet continuation still renders as part of the list
  item.
- Fix the `system.database_engines` documentation example: drop the
  unregistered `Lazy` engine, add `ORDER BY name` for stable output, and
  correct the response block to match (`Atomic`, `Ordinary`).
- Document `Documentation::related` as cross-build cross-reference metadata
  that may name components disabled by compile-time options, so listing
  `S3`/`HDFS` as related to `Filesystem` in builds without `USE_AWS_S3`/
  `USE_HDFS` is intended rather than a missing row.
- Renumber the new stateless test to `04305` to avoid a prefix collision
  with tests added on master.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Comment thread src/Databases/DatabaseBackup.cpp Resolved
alexey-milovidov and others added 2 commits June 5, 2026 06:20
…e engine

The `syntax` field of the `Backup` database engine in `system.database_engines`
exposed `ENGINE = Backup('database_name', 'backup_destination')`, where the
second argument is a string literal. However, `parseArguments` passes that
argument to `BackupInfo::fromAST`, which requires an `ASTFunction` and throws
`Expected function, got 'backup_destination'`. Use a destination function form
instead, consistent with the embedded documentation body.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…umentation

# Conflicts:
#	src/Common/Documentation.h
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Continued work on this PR:

  • Merged latest master (was 573 commits behind and red). The only conflict was the expected add/add on src/Common/Documentation.h — sibling PR Add embedded documentation for table engines #106177 merged first, introducing the shared struct. Kept this branch's version, which adds the explanatory paragraph about related being cross-reference metadata that may name components not present in the current build. src/Common/Documentation.cpp is now already on master, so it no longer appears in the diff.
  • Fixed the bot-flagged Backup engine syntax (b5cdce468e2): it exposed ENGINE = Backup('database_name', 'backup_destination'), but the second argument is passed to BackupInfo::fromAST, which requires an ASTFunction and throws Expected function, got 'backup_destination'. Changed to a destination-function form: ENGINE = Backup('database_name_inside_backup', Disk('disk_name', 'backup_name')). Verified locally that the old form throws while the new form parses past fromAST.

Built cleanly and verified 04305_database_engines_documentation and 02959_system_database_engines pass against the rebuilt binary.

The remaining red was 4 test_storage_kafka/test_batch_slow_6.py cases, all failing with Code: 210. DB::NetException: No route to host (172.16.1.9:9000). (NETWORK_ERROR) — an infrastructure/network flake unrelated to the documentation changes.

Comment thread src/Databases/DatabaseBackup.cpp Resolved
alexey-milovidov and others added 2 commits June 7, 2026 08:38
The `description` field of the `Backup` database engine, now user-visible
through `system.database_engines`, still showed a first `CREATE DATABASE`
example with a string-literal second argument:
`ENGINE = Backup('database_name_inside_backup', 'backup_destination')`.
`parseArguments` passes that argument to `BackupInfo::fromAST`, which requires
an `ASTFunction` and throws `Expected function, got 'backup_destination'`.

Replaced the broken generic example with the valid destination-function form
`Disk('disk_name', 'backup_name')` (consistent with the `syntax` field) and
dropped the now-redundant duplicate example block. Applied the same change to
the standalone `docs/en/engines/database-engines/backup.md` page so the two
stay in sync.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Continued work on this PR:

  • Fixed the remaining bot-flagged Backup example (4e9b84329dd). The previous fix corrected the syntax field, but the AI review correctly pointed out that the first CREATE DATABASE block inside the user-visible description (and the standalone docs/en/engines/database-engines/backup.md page) still used a string-literal second argument: ENGINE = Backup('database_name_inside_backup', 'backup_destination'). parseArguments passes that argument to BackupInfo::fromAST, which requires an ASTFunction and throws Expected function, got 'backup_destination'. Replaced it with the valid destination-function form Disk('disk_name', 'backup_name') (consistent with the syntax field) and dropped the now-redundant duplicate example block. Applied the same change to both the embedded description and the standalone Markdown page.
  • Merged latest master (5f66973ed1b, was 464 commits behind and red). No conflicts — sibling PRs already on master left the shared src/Common/Documentation.h consistent.

Verified against a freshly built binary:

  • system.database_engines exposes the new description/syntax/examples/introduced_in/related columns; 04305_database_engines_documentation reproduced exactly against the rebuilt binary (reference matches).
  • The old Backup example throws Expected function, got 'backup_destination'; the new form parses past fromAST and only fails later at the disk-config stage (The 'backups.allowed_disk' configuration parameter is not set), as expected for an illustrative example.

The previously reported integration failures (test_replicated_database/test.py::test_sync_replica, test_alias_with_dropped_target) are pre-existing flakes: per the CI database they fail across many unrelated PRs and on master itself (pull_request_number = 0 occurrences on 2026-04-28 and 2026-04-20). This PR adds documentation strings only — no behavioral change to DatabaseReplicated.

@groeneai, the test_replicated_database flakiness (test_sync_replica / test_alias_with_dropped_target) recurs broadly and has no open issue — could you take a look and provide a fix in a separate PR?

Comment thread src/Databases/MySQL/DatabaseMySQL.cpp Resolved
@groeneai

groeneai commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

@alexey-milovidov, investigation summary on test_replicated_database/test_sync_replica and test_alias_with_dropped_target flakiness.

CIDB cross-PR pattern (last 30 days)

test hits distinct PRs master hits
test_sync_replica 11 4 0 (in 30d)
test_alias_with_dropped_target 7 3 0 (in 30d)

pull_request_number = 0 rows on 2026-04-28 and 2026-04-20 (release branch 26.1, not master) per the prior comment. No master hit since 2026-05-22 NuRaft bump (c18b1451cd93, by antonio2368).

Root cause: Keeper TSan data race in NonblockingBoundedQueue<KeeperRequestForSession>

The most recent failure (this PR, amd_tsan, 2026-06-05, sha 413c4041a85f) shows two distinct symptoms with one underlying cause:

  1. test_sync_replica line 1223 raises Code: 571. DB::Exception: ZooKeeper session expired or replication stopped, try again. (DATABASE_REPLICATION_FAILED) from DatabaseReplicatedDDLWorker.cpp:481 while enqueuing CREATE TABLE test_sync_database.table_680.
  2. test_alias_with_dropped_target teardown raises Exception: Sanitizer assert found for instance zoo2-1, surfaced by cluster.shutdown scanning the combined docker log for the SANITIZER_SIGN.

The zoo2-1 docker log contains a WARNING: ThreadSanitizer: data race (pid=1) on the slot value of NonblockingBoundedQueue<DB::KeeperRequestForSession> (src/Common/NonblockingBoundedQueue.h:107 and :138):

Read of size 8 at 0x7fc23126c008 by thread T33 'KeeperRequest':
  #1 KeeperRequestForSession::operator= src/Coordination/KeeperCommon.h:57:8
  #2 NonblockingBoundedQueue::tryPop  src/Common/NonblockingBoundedQueue.h:138:23
  #3 KeeperRequestDispatcher::tryPopRequest  KeeperRequestDispatcher.cpp:346
  #4 KeeperRequestDispatcher::dispatchThread KeeperRequestDispatcher.cpp:653

Previous write of size 8 at 0x7fc23126c008 by thread T6 'KeeperHandler':
  #1 KeeperRequestForSession::operator= src/Coordination/KeeperCommon.h:57:8
  #2 NonblockingBoundedQueue::tryPush  src/Common/NonblockingBoundedQueue.h:107:24
  #3 KeeperRequestDispatcher::putRequest KeeperRequestDispatcher.cpp:307
  #4 KeeperDispatcher::putRequest KeeperDispatcher.cpp:263

TSan flags it as As if synchronized via sleep rather than via the queue's release/acquire on slot.pos. The race location (heap offset 8 within a 64-byte aligned Slot whose pos is at offset 0) is slot.value.session_id, the first member of KeeperRequestForSession.

Server log confirms the consequence: <Error> keeper_dispatcher: Failed to create new session: ZooKeeper session expired on Keeper, which becomes DATABASE_REPLICATION_FAILED on main_node. This kills the test (no retry on tryEnqueueAndExecuteEntry), then cluster.shutdown discovers the sanitizer marker in the docker log and re-raises it on whichever test was last (here test_alias_with_dropped_target). So the two failures are joint symptoms of one race, not independent test bugs.

Provenance

NonblockingBoundedQueue.h and the KeeperRequestDispatcher migration to it both arrived in PR #101757 "KeeperDispatcher overhaul" (al13n321, merged 2026-05-22). All test_sync_replica failures listed above first cluster on the fwd branch of #101757 itself (PR run, Integration tests (amd_tsan, 4/6)), with later sightings on unrelated branches (#100185, #104889, #105056, #106178) where the same code now lives in master.

Sibling chronic family

This is the same TSan-on-zoo2-1 family I have been tracking under test_read_only_table::test_restart_zookeeper (NuRaft cmd_result::code_ race fix in NuRaft#106, picked up in master via the 2026-06-01 submodule bump c18b1451). The NuRaft race is fixed and out of the picture; what remains is this distinct NonblockingBoundedQueue race introduced by PR #101757.

What I propose to do

Two parts:

  1. Hand the Keeper internals to al13n321. The race is in code he wrote and the synchronization analysis (whether the release/acquire on slot.pos is sufficient versus an actually-needed barrier across destructor/move-assign of slot.value, or whether the queue needs a different ownership protocol on Slot::value) belongs to the author. I have neither a deterministic local TSan repro nor familiarity with that queue's internal protocol, so per MEMORY.md "do not make speculative defensive changes for bugs you can't reproduce", I will not write a patch. Happy to file an issue summarizing the above and link it here if you want; otherwise this comment is the artifact. Tag preference whichever you prefer.

  2. Independently harden the test. While the engine race is being investigated, I can land a small test-side change that retries tryEnqueueAndExecuteEntry on DATABASE_REPLICATION_FAILED (the error message is literally "try again") for the 1000-table inner loop, so this race's failure mode does not present as a test_sync_replica flake on top of the actual TSan report. That is purely a test fix; it does not paper over the engine race (the sanitizer assert in the docker log is still detected by cluster.shutdown and still fails the run as test_alias_with_dropped_target). Want me to send that as a separate small PR, or skip until the engine fix lands?

Awaiting your routing on (1) and (2). Holding off on any code changes until then.

Session id: cron:clickhouse-ci-task-worker:20260607-094500

…ings

The embedded `description` for the `MySQL` database engine was missing the
`[SETTINGS enable_compression=0]` syntax clause and the `enable_compression`
settings section that the dedicated `docs/en/engines/database-engines/mysql.md`
page carries. Since `MySQL` has `.supports_settings = true` and
`enable_compression` is a real `MySQLSettings` entry, users querying
`system.database_engines` would have missed a supported option, and a future
regeneration of the Markdown page from this field would have dropped it.

The embedded block now matches the page verbatim.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Comment thread src/Databases/DatabaseBackup.cpp Resolved
alexey-milovidov and others added 2 commits June 10, 2026 07:38
The example created `postgres_db` but the subsequent query selected from
`postgresql_db.postgres_table`, referencing a database that was never
created. Use `postgres_db` consistently in the embedded documentation
and in `docs/en/engines/database-engines/materialized-postgresql.md`.

Co-Authored-By: Claude Fable 5 <[email protected]>
The example query in the embedded documentation (now exposed through
`system.database_engines`) ended with `:` instead of `;` and had the
response table inside the same `sql` fence, so copying it produced a
syntax exception. Terminate the query with `;` and move the response
into a `text` fence, here and in
`docs/en/engines/database-engines/backup.md`.

Co-Authored-By: Claude Fable 5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Addressed both review threads:

  • 683075fbd53 — the MaterializedPostgreSQL usage example now uses postgres_db consistently (embedded documentation + docs/en/engines/database-engines/materialized-postgresql.md).
  • a7f556e14d4 — the Backup example query now ends with ; and the response table is in a separate text fence (embedded documentation + docs/en/engines/database-engines/backup.md).

The only CI failure, BuzzHouse (amd_debug) Inconsistent AST formatting (STID: 1941-1bfa), is a known issue on master, unrelated to this PR.
Related: #105396

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Checked the CI status. Both red checks are unrelated to this PR (which only embeds documentation strings for database engines):

  • Stateless tests (arm_asan_ubsan, azure, parallel) — all 5 failed tests (04229_trivial_group_by_limit_profile_events, 02569_order_by_aggregation_result, 04075_right_any_join_incorrect, 00091_union_race_conditions_2, 01747_alter_partition_key_enum_zookeeper_long) died in the same two-minute window with (total) memory limit exceeded at RSS ~53 GiB against the 53.69 GiB runner-wide cap. CIDB shows this exact failure mode hit 545 tests across 82 PRs (including master) on 2026-06-10 alone — a runner-wide memory event, not a test or code problem.
  • Stress test (arm_asan_ubsan) — Logical error: Table A.B not found in catalog (STID: 3215-370f). CIDB shows 29 occurrences across 24 PRs plus master on 2026-06-10 — a known master-wide issue.

@groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106178&sha=a7f556e14d44150adcb36866d25c60695c517ab0&name_0=PR&name_1=Stateless%20tests%20%28arm_asan_ubsan%2C%20azure%2C%20parallel%29 (the runner-wide (total) memory limit exceeded event affecting dozens of PRs since 2026-06-08) and provide a fix in a separate PR. If the fix is already in progress, link it here.

@groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106178&sha=a7f556e14d44150adcb36866d25c60695c517ab0&name_0=PR&name_1=Stress%20test%20%28arm_asan_ubsan%29 (Table A.B not found in catalog in the stress test, master-wide) and provide a fix in a separate PR. If the fix is already in progress, link it here.

No changes pushed: zero unresolved review threads, the branch merges cleanly, and the merge base is less than a week old. The PR is blocked only on approval.

@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov You are correct that both red checks are unrelated to this doc-only PR. Here is the status of each, with fresh CIDB data.

1. Stress test (arm_asan_ubsan): Table A.B not found in catalog (STID 3215-370f) - already fixed.

This was a regression from #106020 (multistage distributed queries, merged 2026-06-09 15:25 UTC). Worker-side ReadFromMergeTree::deserialize re-resolves the source table by database.name; when that table is concurrently dropped, tryGetTable returns null and the LOGICAL_ERROR fires (reachable runtime condition, not an invariant).

Fixed by #106944 ("Fix logical error when table is dropped before distributed plan task deserialization", by Alexander Gololobov), merged 2026-06-10 14:56 UTC, which closed #106906. The 29 occurrences you cite are all inside the 2026-06-09/06-10 regression window. CIDB confirms zero not found in catalog failures on master after the 14:56 merge (06-10: 31 hits, 06-09: 15, 06-11 onward: 0). No separate PR needed; the fix is merged. The sibling std::terminate STIDs 7594-555f / 7594-416d (same #106020 family) are also clean on master post-merge; I am keeping them on a watch-list.

2. Stateless tests (arm_asan_ubsan, azure, parallel): (total) memory limit exceeded - host-level runner OOM, not per-test or code.

Confirmed: the 5 tests died in the same two-minute window because the arm_asan_ubsan azure parallel shard hit the runner-wide ~53.69 GiB RSS cap (OvercommitTracker arbitration on total server RSS, not any one query's max_memory_usage). One memory-hog test leaves the server near the cap and the next parallel tests on the same shard get cancelled. Daily CIDB spread for this signature on that shard:

  • 06-07: 3, 06-08: 16 (onset), 06-09: 367, 06-10: 546 (across 82 PRs incl. master), 06-11: 88, 06-12 so far: 0.

So it peaked on 06-10 and has effectively subsided. This is a runner capacity / scheduling issue rather than a fix-in-one-commit code bug, so there is no single PR that closes it. The actionable slices already in progress:

If you want a structural separate PR (e.g. lowering parallelism or the per-shard memory budget on this runner, or splitting the heaviest tests off the parallel lane), #106175 already poses exactly that question and I will proceed the moment you confirm the approach. Otherwise the per-test disables above plus the natural subsidence should keep this off your PRs.

Net: both red checks are pre-existing CI issues, neither caused by your documentation strings. #106178 is safe to merge.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Merged `master` (`f747c2bb7bc`): branch was 2152 commits behind (merge-base 2026-06-07) and red. The stress red Logical error: Table A.B not found in catalog (STID 3215-370f) is the known #106020 regression — fixed by #106944 and the revert of #106020 (#107122), both merged into master on 2026-06-11, after this branch's previous merge-base. Re-merging past 2026-06-11 brings those in and should clear that stress failure.

Merge was clean with no conflicts; the PR diff is unchanged (only the embedded-docs files + tests 04305/02959).

The remaining stateless reds (arm_asan_ubsan, azure) are the master-wide runner memory-limit flake class — all five failures hit (total) memory limit exceeded ... current RSS: 53.86 GiB, maximum: 53.69 GiB in the same window, unrelated to this docs-only change. @groeneai, this azure runner over-cap flake is still open across many PRs and master; no fix PR is known.

For example:

```sql
CREATE TABLE db (n UInt64) ENGINE = Atomic SETTINGS disk=disk(type='local', path='/var/lib/clickhouse-disks/db_disk');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This description is now exposed through system.database_engines, but the metadata-disk example is a CREATE TABLE statement using the database engine Atomic as a table engine. That query cannot parse as a valid table engine clause, so users copying the runtime docs get an exception instead of a database with metadata on the configured disk. Please make this a database statement here and in docs/en/engines/database-engines/atomic.md, for example:

CREATE DATABASE db ENGINE = Atomic SETTINGS disk=disk(type='local', path='/var/lib/clickhouse-disks/db_disk');

ENGINE = DataLakeCatalog(catalog_endpoint)
SETTINGS
catalog_type = 'onelake',
warehouse = warehouse,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This OneLake example is now user-visible via system.database_engines.description, but these settings values are parsed by ParserSetQuery::parseNameValuePair, which accepts literals or disk(...) functions after =, not bare identifiers. As written, warehouse = warehouse and the following string settings fail at parse time before DatabaseDataLakeSettings::loadFromQuery runs. Please quote the placeholder values here and in docs/en/engines/database-engines/datalake.md, e.g. warehouse = 'warehouse', onelake_tenant_id = 'tenant_id', oauth_server_uri = 'server_uri', etc.

@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov Correct on both, and the re-merge cleared the stress half.

Stress Table A.B not found in catalog (3215-370f): gone on master, 0 hits since 2026-06-10. Your re-merge pulls #106944 plus the #106020 revert (#107122), both in master 06-11. Resolved.

Azure (total) memory limit exceeded: host-level runner over-cap (OvercommitTracker arbitration on total server RSS ~53.69 GiB), not this PR and not any single query. Daily spread on Stateless tests (arm_asan_ubsan, azure), master / PR rows:

day master PR distinct PRs
06-08 2 14 10 (onset)
06-09 17 350 29
06-10 19 526 82 (peak)
06-11 14 74 12
06-12 0 19 5
06-13 0 3 2

Peaked 06-10, now near-zero on master. There is no fix PR because this is not a one-commit code bug: it is a runner capacity/scheduling problem. The concrete decision is disabling the heaviest tests on this lane (mirroring #106797, merged) vs a shard-level memory/parallelism change to the runner env. That call is yours, and I already posed exactly that fork on #106175 (issuecomment-4656035147, 2026-06-09); it is still open. Pick one there and I will execute it in a separate PR.

Both reds are unrelated to the embedded-docs strings; #106178 is safe to merge.

Session id: cron:clickhouse-worker-slot-2:20260613-054200

@clickhouse-gh

clickhouse-gh Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.70% 84.70% +0.00%
Functions 92.30% 92.30% +0.00%
Branches 77.30% 77.30% +0.00%

Changed lines: Changed C/C++ lines covered by tests: 922/922 (100.00%) | Lost baseline coverage: none · Uncovered code

Full report · Diff report

@alexey-milovidov alexey-milovidov self-assigned this Jun 14, 2026

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good!

@alexey-milovidov
alexey-milovidov merged commit e295516 into master Jun 14, 2026
165 of 166 checks passed
@alexey-milovidov
alexey-milovidov deleted the database-engine-documentation branch June 14, 2026 02:05
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants