v.21.6New Feature
Support for Dictionary Management in clickhouse-local with DDL Queries
Support creating dictionaries with DDL queries inclickhouse-local. Closes #22354. Added support forDETACH DICTIONARY PERMANENTLY. Added support forEXCHANGE DICTIONARIESforAtomicdatabase engine. Added support for moving dictionaries between databases usingRENAME DICTIONARY. #23436 (Maksim Kita).
Why it matters
These improvements address gaps in dictionary management by enabling dictionary creation directly inclickhouse-local, allowing permanent detachment of dictionaries to better control lifecycle, facilitating dictionary swapping in Atomic databases for atomic operations, and enabling dictionary relocation across databases. Together, these features make dictionary administration more flexible, powerful, and aligned with enterprise needs.How to use it
To create dictionaries inclickhouse-local, use standard DDL CREATE DICTIONARY queries as you would in the server. Use DETACH DICTIONARY PERMANENTLY to detach a dictionary irreversibly. For atomic dictionary swapping in the Atomic engine, use EXCHANGE DICTIONARIES. To move a dictionary between databases, use RENAME DICTIONARY specifying the target database.