v.22.6New Feature

Add merge_reason column to system.part_log table

Add merge_reason column to system.part_log table. #36912 (Sema Checherinda).
Added a new merge_reason column to the system.part_log table in ClickHouse.

Why it matters

This feature provides additional insight into the reasons why parts are merged within ClickHouse. It helps users and DBAs better understand merge operations by explicitly logging the cause of each merge event, improving observability and debugging of merges.

How to use it

Users can query the system.part_log table and include the merge_reason column in their SELECT statements to analyze merge events and their causes.