> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.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)) — テーブルが存在するデータベースの名前。
* `table` ([String](/ja/reference/data-types)) — テーブル名。
* `elapsed` ([Float64](/ja/reference/data-types)) — マージ開始からの経過時間 (秒) 。
* `progress` ([Float64](/ja/reference/data-types)) — 完了した作業の割合。0 から 1 まで。
* `num_parts` ([UInt64](/ja/reference/data-types)) — マージ対象のパーツ数。
* `source_part_names` ([Array(String)](/ja/reference/data-types)) — ソースパーツ名の一覧。
* `result_part_name` ([String](/ja/reference/data-types)) — マージの結果として生成されるパーツの名前。
* `source_part_paths` ([Array(String)](/ja/reference/data-types)) — 各ソースパーツのパスの一覧。
* `result_part_path` ([String](/ja/reference/data-types)) — マージの結果として生成されるパーツのパス。
* `partition_id` ([String](/ja/reference/data-types)) — マージが行われているパーティションの識別子。
* `partition` ([String](/ja/reference/data-types)) — パーティションの名前。
* `is_mutation` ([UInt8](/ja/reference/data-types)) — このプロセスが パートミューテーション の場合は 1。
* `total_size_bytes_compressed` ([UInt64](/ja/reference/data-types)) — マージされた chunk 内の圧縮データの合計サイズ。
* `total_size_bytes_uncompressed` ([UInt64](/ja/reference/data-types)) — マージされた chunk 内の非圧縮データの合計サイズ。
* `total_size_marks` ([UInt64](/ja/reference/data-types)) — マージされたパーツ内のマーク総数。
* `bytes_read_uncompressed` ([UInt64](/ja/reference/data-types)) — 読み込まれた非圧縮バイト数。
* `rows_read` ([UInt64](/ja/reference/data-types)) — 読み込まれた行数。
* `bytes_written_uncompressed` ([UInt64](/ja/reference/data-types)) — 書き込まれた非圧縮バイト数。
* `rows_written` ([UInt64](/ja/reference/data-types)) — 書き込まれた行数。
* `columns_written` ([UInt64](/ja/reference/data-types)) — 書き込まれたカラム数 (Vertical merge アルゴリズムの場合) 。
* `memory_usage` ([UInt64](/ja/reference/data-types)) — マージプロセスのメモリ使用量。
* `thread_id` ([UInt64](/ja/reference/data-types)) — マージプロセスのスレッド ID。
* `merge_type` ([String](/ja/reference/data-types)) — 現在のマージの種類。mutation の場合は空です。
* `merge_algorithm` ([String](/ja/reference/data-types)) — 現在のマージで使用されるアルゴリズム。mutation の場合は空です。
