> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> MergeTree familyのテーブルで現在進行中のマージおよびパートミューテーションに関する情報を格納するシステムテーブル。

# system.merges

<Info>
  **ClickHouse Cloud でのクエリ**

  このシステムテーブルのデータは、ClickHouse Cloud の各ノードにローカルに保持されています。したがって、すべてのデータを完全に把握するには、`clusterAllReplicas` 関数を使用する必要があります。詳細については、[こちら](/ja/reference/system-tables/overview#system-tables-in-clickhouse-cloud)を参照してください。
</Info>

<div id="description">
  ## 説明
</div>

現在処理中の、MergeTree family のテーブルにおけるマージおよびパートミューテーションに関する情報を含みます。

<div id="columns">
  ## カラム
</div>

* `database` ([String](/ja/reference/data-types/index)) — テーブルが存在するデータベースの名前。
* `table` ([String](/ja/reference/data-types/index)) — テーブル名。
* `elapsed` ([Float64](/ja/reference/data-types/index)) — マージ開始からの経過時間 (秒) 。
* `progress` ([Float64](/ja/reference/data-types/index)) — 完了した作業の割合。0 から 1 で表されます。
* `num_parts` ([UInt64](/ja/reference/data-types/index)) — マージ対象のパーツ数。
* `source_part_names` ([Array(String)](/ja/reference/data-types/index)) — ソースパーツ名の一覧。
* `result_part_name` ([String](/ja/reference/data-types/index)) — マージの結果として生成されるパーツの名前。
* `source_part_paths` ([Array(String)](/ja/reference/data-types/index)) — 各ソースパーツのパスの一覧。
* `result_part_path` ([String](/ja/reference/data-types/index)) — マージの結果として生成されるパーツのパス。
* `partition_id` ([String](/ja/reference/data-types/index)) — マージが行われているパーティションの識別子。
* `partition` ([String](/ja/reference/data-types/index)) — パーティションの名前。
* `is_mutation` ([UInt8](/ja/reference/data-types/index)) — このプロセスが パートミューテーション の場合は 1。
* `total_size_bytes_compressed` ([UInt64](/ja/reference/data-types/index)) — マージされた chunk 内の圧縮データの合計サイズ。
* `total_size_bytes_uncompressed` ([UInt64](/ja/reference/data-types/index)) — マージされた chunk 内の非圧縮データの合計サイズ。
* `total_size_marks` ([UInt64](/ja/reference/data-types/index)) — マージされたパーツ内のマーク総数。
* `bytes_read_uncompressed` ([UInt64](/ja/reference/data-types/index)) — 読み取った非圧縮バイト数。
* `rows_read` ([UInt64](/ja/reference/data-types/index)) — 読み取った行数。
* `bytes_written_uncompressed` ([UInt64](/ja/reference/data-types/index)) — 書き込んだ非圧縮バイト数。
* `rows_written` ([UInt64](/ja/reference/data-types/index)) — 書き込んだ行数。
* `columns_written` ([UInt64](/ja/reference/data-types/index)) — 書き込んだカラム数 (Vertical merge アルゴリズムの場合) 。
* `memory_usage` ([UInt64](/ja/reference/data-types/index)) — マージ処理のメモリ消費量。
* `thread_id` ([UInt64](/ja/reference/data-types/index)) — マージ処理のスレッド ID。
* `merge_type` ([String](/ja/reference/data-types/index)) — 現在のマージの種類。mutation の場合は空です。
* `merge_algorithm` ([String](/ja/reference/data-types/index)) — 現在のマージで使用されるアルゴリズム。mutation の場合は空です。
* `current_projection` ([String](/ja/reference/data-types/index)) — 現在マージまたは再構築中のプロジェクションの名前。プロジェクションのマージ段階でない場合は空です。
* `current_projection_progress` ([Float64](/ja/reference/data-types/index)) — 現在のプロジェクションマージの進行状況。0 から 1 で表されます。
* `current_projection_parts_merging` ([UInt64](/ja/reference/data-types/index)) — 現在マージ中の projection parts の数。
* `current_projection_parts_remaining` ([UInt64](/ja/reference/data-types/index)) — 現在のプロジェクションで、マージ対象として残っている projection parts の数。
* `projections_completed` ([Array(String)](/ja/reference/data-types/index)) — これまでにマージまたは再構築されたプロジェクションの一覧。
* `projections_remaining` ([Array(String)](/ja/reference/data-types/index)) — まだマージまたは再構築が必要なプロジェクションの一覧。
