Repository navigation
Docs: don't use passwordless default user in ClickHouse dictionary source example - #122348
Conversation
…urce example The CLICKHOUSE dictionary source examples used user 'default' / password '', which ClickHouse Cloud rejects when a non-default user creates the dictionary. Use a dedicated user in the examples and syntax, and note the Cloud requirement. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SENCmXWTjAn19AR5ShAVLM
|
Workflow [PR], commit [c7e4578] Summary: ❌
AI ReviewSummaryThis PR updates the Findings
Final VerdictChanges requested: keep the ClickHouse Cloud dictionary guidance consistent across the shared snippets and the source-specific page. LLVM Coverage ReportMeasured on commit c7e4578.
Changed lines: Changed C/C++ lines covered: 25/25 (100.00%) · Uncovered code |
| </Note> | ||
|
|
||
| <Note> | ||
| In ClickHouse Cloud, when a user other than `default` creates the dictionary, the source must specify both `user` and `password`, and `user` cannot be `default`. Otherwise `CREATE DICTIONARY` fails with a `BAD_ARGUMENTS` error. Use a dedicated user that has `SELECT` on the source table. |
There was a problem hiding this comment.
The new note changes the Cloud guidance on this page from “create dictionaries as default” to “non-default creators are fine if the source uses dedicated credentials”, but the shared dictionary-in-Cloud guidance still says the opposite in docs/snippets/_snippet_dictionary_in_cloud.mdx:2 and src/Parsers/ParserCreateQuery.cpp:3680. That snippet is imported across the dictionary docs, so after this change users will get contradictory instructions depending on which page they read. Please update the shared Cloud guidance in the same PR, or narrow this note so it does not claim support that the rest of the docs still deny.
|
The only failure is read_in_reverse_order_final #1 in Performance Comparison (arm_release, master_head, 2/6), and I believe it's unrelated to this PR. The change only edits the documentation string and syntax field in the clickhouse dictionary source registration, and neither is on any query execution path. The other five arm shards and all functional checks pass. Could someone rerun that shard or override it? |
6627627
Document the backward-incompatible credential restriction in 26.6.1.240 and replace outdated Cloud dictionary guidance with dedicated source-user instructions and links to the `dict_reader` example. Update the generated `CREATE DICTIONARY` documentation in its source registration. Related: ClickHouse#122348 Related: ClickHouse/clickhouse-private#54834 Example: https://clickhouse.com/docs/reference/statements/create/dictionary/sources/clickhouse
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
The ClickHouse dictionary source page (
/sql-reference/statements/create/dictionary/sources/clickhouse) showsuser 'default'/password ''in both the DDL and XML examples. In ClickHouse Cloud, copying that example fails for any user other thandefault:Cloud requires a non-
defaultcreator to specify bothuserandpasswordin aCLICKHOUSEsource, and since 26.6 it also rejectsdefaultas the source user, whatever the password.This change updates the generated page's source of truth, the
Documentationregistration insrc/Dictionaries/ClickHouseDictionarySource.cpp:dict_readeruser with a password.syntaxfield uses placeholder credentials instead ofdefault/''.<Note>describes the Cloud requirement and the error.It changes only the documentation strings.
04306_dictionary_sources_documentationand05023_dictionary_source_descriptionscheck that descriptions and syntax are non-empty and never compare this text. The.mdxpage is left to the docs autogeneration workflow, perdocs/reference/AGENTS.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01SENCmXWTjAn19AR5ShAVLM
Workflow [PR]
Sync PR [sync-upstream/pr/122348]
Version info
26.10.1.895-master(included in26.10and later)