In clickhouse, the table is partitioned by day. Now I want to drop multi-partition in one alter
query for convenience.
I've done this by shell using while loop:
while [[ $startDate < $endDate ]]
do
clickhouse-client --query="alter table db.table drop partition toYYYYMMDD(toDate($startDate))"
startDate=`date -d "+1 day $startDate" +%Y-%m-%d`
done
And I just want to find some way that can do this easily. Is there some way? Thanks~