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

> 分片への送信待ちキューに入っているローカルファイルに関する情報を含むシステムテーブル。

# system.distribution_queue

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

分片への送信待ちとなっているローカルファイルに関する情報が含まれています。これらのローカルファイルには、非同期モードで Distributed テーブルに新しいデータを挿入したときに作成される新しいパーツが含まれています。

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

* `database` ([String](/ja/reference/data-types)) — データベースの名前。
* `table` ([String](/ja/reference/data-types)) — テーブルの名前。
* `data_path` ([String](/ja/reference/data-types)) — ローカルファイルが格納されたフォルダへのパス。
* `is_blocked` ([UInt8](/ja/reference/data-types)) — ローカルファイルのサーバーへの送信がブロックされているかどうかを示すフラグ。
* `error_count` ([UInt64](/ja/reference/data-types)) — エラー数。
* `data_files` ([UInt64](/ja/reference/data-types)) — フォルダ内のローカルファイル数。
* `data_compressed_bytes` ([UInt64](/ja/reference/data-types)) — ローカルファイル内の圧縮データのサイズ (バイト単位) 。
* `broken_data_files` ([UInt64](/ja/reference/data-types)) — 破損としてマークされたファイルの数 (エラーによる) 。
* `broken_data_compressed_bytes` ([UInt64](/ja/reference/data-types)) — 破損したファイル内の圧縮データのサイズ (バイト単位) 。
* `last_exception` ([String](/ja/reference/data-types)) — 最後に発生したエラーに関するテキストメッセージ (存在する場合) 。
* `last_exception_time` ([DateTime](/ja/reference/data-types)) — 最後に例外が発生した時刻。

<div id="example">
  ## 例
</div>

```sql theme={null}
SELECT * FROM system.distribution_queue LIMIT 1 FORMAT Vertical;
```

```text theme={null}
Row 1:
──────
database:              default
table:                 dist
data_path:             ./store/268/268bc070-3aad-4b1a-9cf2-4987580161af/default@127%2E0%2E0%2E2:9000/
is_blocked:            1
error_count:           0
data_files:            1
data_compressed_bytes: 499
last_exception:
```

<div id="see-also">
  ## 関連項目
</div>

* [Distributedテーブルエンジン](/ja/reference/engines/table-engines/special/distributed)
