v.23.11Improvement
Support Index Creation and TTL Modification in a Single ALTER Query
Support creating and materializing index in the same alter query, also support "modify TTL" and "materialize TTL" in the same query. Closes #55651. #56331 (flynn).
Why it matters
This feature improves efficiency and convenience by allowing users to execute multiple related changes in one atomicALTER operation. It eliminates the need for multiple queries to create and materialize indexes or to modify and materialize TTLs separately, simplifying schema maintenance and reducing operational overhead.How to use it
Users can now write a singleALTER TABLE query that includes both index creation and materialization clauses, or both TTL modification and materialization clauses. For example, combining ALTER TABLE ... ADD INDEX ... MATERIALIZE INDEX or ALTER TABLE ... MODIFY TTL ... MATERIALIZE TTL in one query.