v.21.1New Features

Add query_id column to system.part_log for inserted parts

Add query_id column to system.part_log for inserted parts. Closes #10097. #18644 (flynn).
Added a query_id column to the system.part_log table to track the query IDs responsible for inserting data parts.

Why it matters

This feature allows users to identify which queries inserted specific parts into ClickHouse tables, improving query auditing, troubleshooting, and performance analysis by linking data parts to their originating queries.

How to use it

After upgrading, users can query the system.part_log table and reference the new query_id column to see the query identifiers associated with each inserted part without any additional configuration.