v.20.9Improvement

Unfold database, table, and uuid macros in ReplicatedMergeTree arguments during table creation

Unfold {database}, {table} and {uuid} macros in ReplicatedMergeTree arguments on table creation. #16160 (tavplubix).
Unfold {database}, {table}, and {uuid} macros in ReplicatedMergeTree arguments during table creation.

Why it matters

This feature allows users to use macros like {database}, {table}, and {uuid} in the arguments of ReplicatedMergeTree table engines which are automatically expanded when creating tables. It simplifies the configuration by enabling dynamic and context-aware values, reducing manual errors and improving maintainability.

How to use it

When defining a table with the ReplicatedMergeTree engine, include macros such as {database}, {table}, or {uuid} in the predefined path or other arguments. These macros will be unfolded automatically at table creation time without additional user intervention.