v.20.7New Feature
Introduce alter_partition_verbose_result Setting for ALTER TABLE Partition Queries
Introduce settingalter_partition_verbose_resultwhich outputs information about touched parts for some types ofALTER TABLE ... PARTITION ...queries (currentlyATTACHandFREEZE). Closes #8076. #13017 (alesapin).
Why it matters
This feature addresses the need for transparency and insight into the internal changes performed during partition-relatedALTER TABLE queries. By showing which parts were touched, users can better understand the impact of their commands, aiding in debugging, auditing, and ensuring correctness.How to use it
Enable the feature by settingalter_partition_verbose_result to 1 (true) before executing relevant ALTER TABLE ... PARTITION ... ATTACH or FREEZE queries. This can be done by running:SET alter_partition_verbose_result = 1Then proceed with the desired
ALTER TABLE query as usual.