Skip to main content
Creates a new named collection.
DDL-created named collections can be enabled on select ClickHouse Cloud services. Contact Support to confirm availability.
Syntax
OR REPLACE and IF NOT EXISTS cannot be used together. CREATE OR REPLACE of an existing collection replaces it entirely: keys and overridability flags absent from the new definition are removed. Overriding a stored key when using the collection requires SHOW NAMED COLLECTIONS SECRETS on that collection, including keys marked OVERRIDABLE. Keys marked NOT OVERRIDABLE cannot be overridden. Dictionary sources follow the same rule. The privilege is checked when the dictionary is created, attached, or restored. When the dictionary is loaded, only keys marked NOT OVERRIDABLE are enforced. Example
Related statements See Also Part of: CREATE
Last modified on October 6, 2026