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

> MergeTree テーブルのデタッチされたパーツに関する情報を含むシステムテーブル

# system.detached_parts

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

[MergeTree](/ja/reference/engines/table-engines/mergetree-family/mergetree) テーブルのデタッチされたパーツに関する情報が含まれています。`reason` カラムには、そのパーツがデタッチされた理由が示されます。

ユーザーによってデタッチされたパーツでは、理由は空です。このようなパーツは、[ALTER TABLE ATTACH PARTITION|PART](/ja/reference/statements/alter/partition#attach-partitionpart) コマンドでアタッチできます。

他のカラムの説明については、[system.parts](/ja/reference/system-tables/parts) を参照してください。

パーツ名が無効な場合、一部のカラムの値は `NULL` になることがあります。このようなパーツは、[ALTER TABLE DROP DETACHED PART](/ja/reference/statements/alter/partition#drop-detached-partitionpart) で削除できます。

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

* `database` ([String](/ja/reference/data-types/string)) — このパーツが属するデータベースの名前。
* `table` ([String](/ja/reference/data-types/string)) — このパーツが属するテーブルの名前。
* `partition_id` ([Nullable(String)](/ja/reference/data-types/nullable)) — このパーツが属するパーティションの識別子。
* `name` ([String](/ja/reference/data-types/string)) — パーツの名前。
* `bytes_on_disk` ([UInt64](/ja/reference/data-types/int-uint)) — すべてのデータパートファイルの合計サイズ (バイト単位) 。
* `modification_time` ([DateTime](/ja/reference/data-types/datetime)) — データパートを含むディレクトリの変更時刻。通常は、detachが実行された時刻に相当します。
* `disk` ([String](/ja/reference/data-types/string)) — このデータパートを保存するディスクの名前。
* `path` ([String](/ja/reference/data-types/string)) — このデータパートのファイルへのディスク上のパス。
* `reason` ([Nullable(String)](/ja/reference/data-types/nullable)) — このパーツがデタッチされた理由。
* `min_block_number` ([Nullable(Int64)](/ja/reference/data-types/nullable)) — マージ後に現在のパーツを構成するデータパーツの最小番号。
* `max_block_number` ([Nullable(Int64)](/ja/reference/data-types/nullable)) — マージ後に現在のパーツを構成するデータパーツの最大番号。
* `level` ([Nullable(UInt32)](/ja/reference/data-types/nullable)) — マージツリーの深さ。ゼロは、現在のパーツが他のパーツをマージして作成されたものではなく、insertによって作成されたことを示します。
