v.21.8Improvement

Support TRUNCATE TABLE for S3 and HDFS

Support TRUNCATE TABLE for S3 and HDFS. Close #25530. #25550 (Kseniia Sumarokova).
Add support for the TRUNCATE TABLE command on tables stored in S3 and HDFS storage systems.

Why it matters

This feature allows users to efficiently delete all data from tables located on S3 or HDFS without needing to drop and recreate the table, improving manageability and operational convenience for external data storage.

How to use it

Users can simply run the TRUNCATE TABLE <table_name> SQL command on tables stored in S3 or HDFS to quickly remove all their data.