更新时间:2025-08-13 GMT+08:00
删除ClickHouse表或分区失败
问题现象
当数据表大小超过“max_table_size_to_drop”会删除失败,执行“alter table database.table drop partition(‘2021-12-15’,’20211225-0000’)” 操作失败,报错:Table or Partition in database.table was not dropped。
原因分析
ClickHouse默认配置“max_table_size_to_drop”和“max_partition_size_to_drop”配置项值为50 G,表和分区大小超过此限制,则会删除失败。
解决办法
通过集群Manager配置管理页面修改“max_table_size_to_drop”和“max_partition_size_to_drop”配置项的值,0默认为不限制。
父主题: 使用ClickHouse