> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.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/index)) — データベース名。
* `table` ([String](/ja/reference/data-types/index)) — テーブル名。
* `data_path` ([String](/ja/reference/data-types/index)) — ローカルファイルが格納されているフォルダーへのパス。
* `is_blocked` ([UInt8](/ja/reference/data-types/index)) — ローカルファイルのサーバーへの送信がブロックされているかどうかを示すフラグ。
* `error_count` ([UInt64](/ja/reference/data-types/index)) — エラー数。
* `data_files` ([UInt64](/ja/reference/data-types/index)) — フォルダー内のローカルファイル数。
* `data_compressed_bytes` ([UInt64](/ja/reference/data-types/index)) — ローカルファイル内の圧縮データのサイズ (バイト単位) 。
* `broken_data_files` ([UInt64](/ja/reference/data-types/index)) — エラーにより破損としてマークされたファイル数。
* `broken_data_compressed_bytes` ([UInt64](/ja/reference/data-types/index)) — 破損ファイル内の圧縮データのサイズ (バイト単位) 。
* `last_exception` ([String](/ja/reference/data-types/index)) — 最後に発生した例外に関するテキストメッセージ (存在する場合) 。
* `last_exception_time` ([DateTime](/ja/reference/data-types/index)) — 最後に例外が発生した時刻。

<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)
