> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-trino-dialect.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/string)) — テーブルが存在するデータベースの名前。
* `table` ([String](/ja/reference/data-types/string)) — テーブル名。
* `elapsed` ([Float64](/ja/reference/data-types/float)) — マージ開始からの経過時間 (秒) 。
* `progress` ([Float64](/ja/reference/data-types/float)) — 完了した作業の割合 (0～1) 。
* `num_parts` ([UInt64](/ja/reference/data-types/int-uint)) — マージするパーツの数。
* `source_part_names` ([Array(String)](/ja/reference/data-types/array)) — ソースパーツ名のリスト。
* `result_part_name` ([String](/ja/reference/data-types/string)) — マージの結果として作成されるパーツの名前。
* `source_part_paths` ([Array(String)](/ja/reference/data-types/array)) — 各ソースパーツのパスのリスト。
* `result_part_path` ([String](/ja/reference/data-types/string)) — マージの結果として作成されるパーツのパス。
* `partition_id` ([String](/ja/reference/data-types/string)) — マージが実行されているパーティションの識別子。
* `partition` ([String](/ja/reference/data-types/string)) — パーティションの名前。
* `is_mutation` ([UInt8](/ja/reference/data-types/int-uint)) — このプロセスがパーツミューテーションの場合は1。
* `total_size_bytes_compressed` ([UInt64](/ja/reference/data-types/int-uint)) — マージされたchunk内の圧縮データの合計サイズ。
* `total_size_bytes_uncompressed` ([UInt64](/ja/reference/data-types/int-uint)) — マージされたchunk内の圧縮データの合計サイズ。
* `total_size_marks` ([UInt64](/ja/reference/data-types/int-uint)) — マージされたパーツ内のマークの合計数。
* `bytes_read_uncompressed` ([UInt64](/ja/reference/data-types/int-uint)) — 非圧縮で読み取ったバイト数。
* `rows_read` ([UInt64](/ja/reference/data-types/int-uint)) — 読み取った行数。
* `bytes_written_uncompressed` ([UInt64](/ja/reference/data-types/int-uint)) — 非圧縮で書き込んだバイト数。
* `rows_written` ([UInt64](/ja/reference/data-types/int-uint)) — 書き込んだ行数。
* `columns_written` ([UInt64](/ja/reference/data-types/int-uint)) — 書き込んだカラム数 (Vertical merge アルゴリズム用) 。
* `memory_usage` ([UInt64](/ja/reference/data-types/int-uint)) — マージプロセスのメモリ使用量。
* `thread_id` ([UInt64](/ja/reference/data-types/int-uint)) — マージプロセスのスレッドID。
* `merge_type` ([String](/ja/reference/data-types/string)) — 現在のマージの種類。ミューテーションの場合は空です。
* `merge_algorithm` ([String](/ja/reference/data-types/string)) — 現在のマージで使用されているアルゴリズム。ミューテーションの場合は空です。
* `current_projection` ([String](/ja/reference/data-types/string)) — 現在マージまたは再構築中のprojectionの名前。projectionのマージステージでない場合は空です。
* `current_projection_progress` ([Float64](/ja/reference/data-types/float)) — 現在のprojectionマージの進捗 (0～1) 。
* `current_projection_parts_merging` ([UInt64](/ja/reference/data-types/int-uint)) — 現在マージ中のprojectionパーツの数。
* `current_projection_parts_remaining` ([UInt64](/ja/reference/data-types/int-uint)) — 現在のprojectionでマージ待ちのprojectionパーツの数。
* `projections_completed` ([Array(String)](/ja/reference/data-types/array)) — これまでにマージまたは再構築されたprojectionのリスト。
* `projections_remaining` ([Array(String)](/ja/reference/data-types/array)) — まだマージまたは再構築が必要なprojectionのリスト。
