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).
Support combining the creation and materialization of indexes in the same ALTER query, as well as modifying and materializing TTLs within a single query.

Why it matters

This feature improves efficiency and convenience by allowing users to execute multiple related changes in one atomic ALTER 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 single ALTER 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.