メインコンテンツへスキップ
メインコンテンツへスキップ

system.merges

ClickHouse Cloud でのクエリ実行

このシステムテーブルのデータは、ClickHouse Cloud の各ノードにローカルに格納されています。そのため、すべてのデータを包括的に確認するには、clusterAllReplicas 関数を使用する必要があります。詳細についてはこちらを参照してください。

説明

MergeTree ファミリーのテーブルに対して現在実行中のマージおよびパーツのミューテーションに関する情報が含まれます。

カラム

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