Skip to main content
在 ClickHouse Cloud 中查询此系统表中的数据分别保存在 ClickHouse Cloud 各节点的本地。因此,如需查看所有数据的完整情况,需要使用 clusterAllReplicas 函数。更多详情请参见此处

描述

包含 MergeTree 家族中的表当前正在进行的合并和 part mutation 的相关信息。

  • database (String) — 表所在数据库的名称。
  • table (String) — 表名。
  • elapsed (Float64) — 自合并开始以来经过的时间 (单位:秒) 。
  • progress (Float64) — 已完成工作的比例,范围为 0 到 1。
  • num_parts (UInt64) — 要合并的 parts 数量。
  • source_part_names (Array(String)) — 源 parts 的名称列表。
  • result_part_name (String) — 合并后生成的 part 名称。
  • source_part_paths (Array(String)) — 各源 part 的路径列表。
  • result_part_path (String) — 合并后生成的 part 的路径。
  • partition_id (String) — 正在进行合并的分区标识符。
  • partition (String) — 分区名称
  • is_mutation (UInt8) — 如果此过程为 part mutation,则为 1。
  • total_size_bytes_compressed (UInt64) — 已合并 chunks 中压缩数据的总大小。
  • total_size_bytes_uncompressed (UInt64) — 已合并 chunks 中压缩数据的总大小。
  • total_size_marks (UInt64) — 已合并 parts 中标记的总数。
  • bytes_read_uncompressed (UInt64) — 读取的未压缩字节数。
  • rows_read (UInt64) — 读取的行数。
  • bytes_written_uncompressed (UInt64) — 写入的未压缩字节数。
  • rows_written (UInt64) — 写入的行数。
  • columns_written (UInt64) — 写入的列数 (适用于 Vertical 合并 algorithm) 。
  • memory_usage (UInt64) — 合并过程的内存消耗。
  • thread_id (UInt64) — 合并过程的线程 ID。
  • merge_type (String) — 当前合并的类型。如果是 mutation,则为空。
  • merge_algorithm (String) — 当前合并使用的算法。如果是 mutation,则为空。
  • current_projection (String) — 当前正在合并或重建的 projection 名称。如果不处于 projection 合并阶段,则为空。
  • current_projection_progress (Float64) — 当前 projection 合并的进度,范围为 0 到 1。
  • current_projection_parts_merging (UInt64) — 当前正在合并的 projection parts 数量。
  • current_projection_parts_remaining (UInt64) — 当前 projection 尚待合并的 projection parts 数量。
  • projections_completed (Array(String)) — 截至目前已合并或重建的 projections 列表。
  • projections_remaining (Array(String)) — 仍需合并或重建的 projections 列表。
最后修改于 2026年8月14日