跳转到主要内容

描述

包含已执行 drop table 操作但尚未完成数据清理的表的信息。

  • index (UInt32) — marked_dropped_tables 队列中的索引。
  • database (String) — 数据库名称。
  • table (String) — 表名。
  • uuid (UUID) — 表 UUID。
  • engine (String) — 表引擎名称。
  • metadata_dropped_path (String) — 表的元数据文件在 metadata_dropped 目录中的路径。
  • table_dropped_time (DateTime) — 计划下一次尝试删除表数据的时间。通常为删除该表的时间加上 database_atomic_delay_before_drop_table_sec

示例

以下示例说明如何获取 dropped_tables 的相关信息。
SELECT *
FROM system.dropped_tables\G
Row 1:
──────
index:                 0
database:              default
table:                 test
uuid:                  03141bb2-e97a-4d7c-a172-95cc066bb3bd
engine:                MergeTree
metadata_dropped_path: /data/ClickHouse/build/programs/data/metadata_dropped/default.test.03141bb2-e97a-4d7c-a172-95cc066bb3bd.sql
table_dropped_time:    2023-03-16 23:43:31
最后修改于 2026年6月10日