Skip to content

[RFC] Tables and dictionaries loading order on server startup and related issues #15170

@tavplubix

Description

@tavplubix

It's just a draft, I will complete the description later

Use case
If some table depends on another table or dictionary (for example, expression in MATERIALIZED, ALIAS or DEFAULT contains joinGet(...) or dictGet(...) or IN operator with StorageSet, maybe there are some other scenarios), then clickhouse-server may fail to start because it doesn't take into account such dependencies.

Describe the solution you'd like
See #15157 (comment)

Additional context
It would be great to collect all related issues here to choose the proper solution.
#8004 #13613 #13059 #15157 #13359

Metadata

Metadata

Assignees

Labels

cloudImportant for Cloudcomp-ddlDDL command coordination and execution (ON CLUSTER, DDL queue).comp-dictionaryDictionaries (in-memory key-value, periodically refreshed from sources).st-discussionWhen the implementation aspects are not clear or when the PR is on hold due to questions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions