system.merges
Querying in ClickHouse Cloud
The data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the clusterAllReplicas function. See here for further details.
包含当前对 MergeTree 系列表正在进行的合并(merge)和分片变更(mutation)的信息。
列:
database(String) — 表所在数据库的名称。table(String) — 表名。elapsed(Float64) — 自合并开始以来经过的时间(秒)。progress(Float64) — 已完成工作的百分比,取值范围为 0 到 1。num_parts(UInt64) — 需要被合并的 part 数量。source_part_names(Array(String)) — 源 part 名称列表。result_part_name(String) — 合并后生成的 part 名称。source_part_paths(Array(String)) — 每个源 part 的路径列表。result_part_path(String) — 合并后生成的 part 路径。partition_id(String) — 正在进行合并的分区标识符。partition(String) — 分区名称。is_mutation(UInt8) — 如果该过程是一次 mutation,则为 1。total_size_bytes_compressed(UInt64) — 已合并数据块中压缩数据的总大小(字节)。total_size_bytes_uncompressed(UInt64) — 已合并数据块中未压缩数据的总大小(字节)。total_size_marks(UInt64) — 已合并 part 中的标记总数。bytes_read_uncompressed(UInt64) — 已读取的未压缩字节数。rows_read(UInt64) — 已读取的行数。bytes_written_uncompressed(UInt64) — 已写入的未压缩字节数。rows_written(UInt64) — 已写入的行数。columns_written(UInt64) — 已写入的列数(对于 Vertical 合并算法)。memory_usage(UInt64) — 合并过程的内存使用量。thread_id(UInt64) — 合并过程的线程 ID。merge_type(String) — 当前合并的类型。如果是 mutation,则为空。merge_algorithm(String) — 当前合并使用的算法。如果是 mutation,则为空。