Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically set max query size in Clickhouse #11213

Open
alisman opened this issue Nov 20, 2024 · 1 comment
Open

Automatically set max query size in Clickhouse #11213

alisman opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels

Comments

@alisman
Copy link
Contributor

alisman commented Nov 20, 2024

No description provided.

@dippindots
Copy link
Member

we need to assign specific user settings when a user gets created. https://clickhouse.com/docs/en/sql-reference/statements/create/settings-profile#example.

currently we have these settings on the clickhouse cloud, I set it manually last week:

max_query_size = 100000000,
max_ast_elements = 6000000,
max_expanded_ast_elements = 6000000

we need to run this command later whenever a new user (USER_NAME) get created:

CREATE
SETTINGS PROFILE client_user_profile SETTINGS max_query_size = 100000000,max_ast_elements = 6000000,max_expanded_ast_elements = 6000000
TO USER_NAME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants