v.24.12Improvement

Add total_bytes_with_inactive to system.tables for inactive parts count

Add total_bytes_with_inactive to system.tables to count the total bytes of inactive parts. #72690 (Kai Zhu).
Added total_bytes_with_inactive column to system.tables that includes the size in bytes of inactive parts alongside active parts.

Why it matters

This feature addresses the need for users to monitor and account for the disk space used not only by active parts but also inactive parts within ClickHouse tables. It provides better visibility into total storage consumption, helping in capacity planning and maintenance.

How to use it

Query the system.tables system table and reference the new total_bytes_with_inactive column to get the combined size of active and inactive parts for each table.