v.23.8Improvement
Added No-Op Support for CREATE UNIQUE INDEX in SQL Parser
Added support of syntaxCREATE UNIQUE INDEXin parser as a no-op for better SQL compatibility.UNIQUEindex is not supported. Setcreate_index_ignore_unique = 1to ignore UNIQUE keyword in queries. #52320 (Ilya Yatsishin).
Why it matters
This feature allows users to run SQL queries containingCREATE UNIQUE INDEX without errors, even though ClickHouse does not support unique indexes. It enhances compatibility with SQL scripts and tools expecting this syntax.How to use it
To enable ignoring theUNIQUE keyword in index creation, set the setting create_index_ignore_unique = 1 before running queries with CREATE UNIQUE INDEX statements.