v.21.9New Feature

Supported cluster macros in table functions 'cluster' and 'clusterAllReplicas'

Supported cluster macros inside table functions 'cluster' and 'clusterAllReplicas'. #26913 (polyprogrammist).
Supported cluster macros inside table functions cluster and clusterAllReplicas.

Why it matters

This feature enables the use of cluster macros within the cluster and clusterAllReplicas table functions, allowing dynamic cluster resolution. It simplifies cluster configuration management and enhances flexibility in distributed queries.

How to use it

Use the cluster macros inside the cluster or clusterAllReplicas table functions in your SQL queries. For example:

SELECT * FROM cluster('my_cluster', 'database', 'table')

This will now support macros defined in the cluster configuration.