v.21.11Improvements

Pass Initial Query ID for ClickHouse Benchmark Queries

Pass through initial query_id for clickhouse-benchmark (previously if you run remote query via clickhouse-benchmark, queries on shards will not be linked to the initial query via initial_query_id). #29364 (Azat Khuzhin).
Pass through the initial query_id from clickhouse-benchmark to queries executed on remote shards, enabling linking of shard queries to the initial benchmark query via initial_query_id.

Why it matters

Previously, when running queries on remote shards using clickhouse-benchmark, the queries on the shards were not linked back to the original benchmarking query because the initial_query_id was not propagated. This feature ensures that the initial query_id is passed through to all shard queries, improving traceability and debugging during benchmarking.

How to use it

Use clickhouse-benchmark as usual to run remote queries. The initial query_id will now be automatically passed to shard queries without any additional configuration required.