v.25.10New Feature
Add ALTER TABLE REWRITE PARTS
AddALTER TABLE REWRITE PARTS- rewrites the table parts from scratch, by using all new settings (since some, likeuse_const_adaptive_granularity, will be applied only for new parts). #87774 (Azat Khuzhin).
Why it matters
This feature solves the problem where certain settings (likeuse_const_adaptive_granularity) are only applied to new parts. By rewriting parts, users can apply these settings retroactively to existing data parts, ensuring consistent application of configurations across the table.How to use it
Execute the SQL commandALTER TABLE <table_name> REWRITE PARTS to trigger a full rewrite of all existing parts in the specified table using the current settings.