Repository navigation
Add server setting ai_function_allow_sql_named_collections - #124999
Merged
Merged
Conversation
When disabled, AI functions accept only named collections defined in the server configuration file. Related: ClickHouse/clickhouse-private#77887 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [a14df58] Summary: ✅
AI ReviewSummaryAdds Missing context / blind spots
Final VerdictStatus: ✅ Approve. |
rschu1ze
approved these changes
Oct 13, 2026
| DECLARE(Bool, ai_function_allow_sql_named_collections, true, R"( | ||
| Allows AI functions (such as `aiGenerate`, `aiEmbed`, `aiSimilarity`) to use named collections created with `CREATE NAMED COLLECTION`. | ||
| When disabled, AI functions accept only named collections defined in the server configuration file, and using any other collection throws an exception. | ||
| This applies both to the `credentials` parameter and to the `ai_function_text_default_credentials` and `ai_function_embedding_default_credentials` settings. |
Member
There was a problem hiding this comment.
The setting is about named collections. L. 981 mentions other settings, that's a bit confusing.
Member
Author
There was a problem hiding this comment.
Not sure how else to write it, it does apply to these default credential settings...
#124999 (comment) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
…-named-collections
Contributor
|
Ask from AI team to backport this to 26.8, this will be main release for Beta. |
This was referenced Oct 28, 2026
PedroTadim
added a commit
that referenced
this pull request
Oct 29, 2026
Backport #124999 to 26.8: Add server setting `ai_function_allow_sql_named_collections`
PedroTadim
added a commit
that referenced
this pull request
Oct 29, 2026
Backport #124999 to 26.9: Add server setting `ai_function_allow_sql_named_collections`
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: https://github.com/ClickHouse/clickhouse-private/issues/77887
Adds the server setting
ai_function_allow_sql_named_collections(defaulttrue). When disabled, AI functions (aiGenerate,aiEmbed,aiSimilarity, etc.) accept only named collections defined in the server configuration file; collections created withCREATE NAMED COLLECTIONthrowACCESS_DENIED. This applies to both thecredentialsparameter and theai_function_*_default_credentialssettings. It lets an administrator restrict AI functions to provider credentials and endpoints configured by the administrator.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Added server setting
ai_function_allow_sql_named_collections. When disabled, AI functions accept only named collections defined in the server configuration file.Workflow [PR]
Sync PR [sync-upstream/pr/124999]
Version info
26.10.1.2421-master(included in26.10and later)26.9.26.30,26.8.35.27