v.24.4Improvement
MOVE PARTITION TO TABLE Query Delays or Throws TOO_MANY_PARTS Exception to Manage Part Count Limits
MOVE PARTITION TO TABLEquery can be delayed or can throwTOO_MANY_PARTSexception to avoid exceeding limits on the part count. The same settings and limits are applied as for theINSERTquery (seemax_parts_in_total,parts_to_delay_insert,parts_to_throw_insert,inactive_parts_to_throw_insert,inactive_parts_to_delay_insert,max_avg_part_size_for_too_many_parts,min_delay_to_insert_msandmax_delay_to_insertsettings). #62420 (Sergei Trifonov).
Why it matters
This feature helps maintain system stability and performance by applying the same part count constraints and delay mechanisms used inINSERT queries to MOVE PARTITION TO TABLE operations. It prevents overwhelming the system with too many parts, reducing the risk of resource exhaustion and operational issues.How to use it
Users can control the behavior ofMOVE PARTITION TO TABLE with existing settings that govern part counts and delays, such as max_parts_in_total, parts_to_delay_insert, parts_to_throw_insert, inactive_parts_to_throw_insert, inactive_parts_to_delay_insert, max_avg_part_size_for_too_many_parts, min_delay_to_insert_ms, and max_delay_to_insert. These settings automatically apply to MOVE PARTITION TO TABLE queries without additional configuration.