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

> S3 や Azure Blob Storage などのリモートディスクに保存されたデータファイルに関する情報を含むシステムテーブル。

# system.remote_data_paths

## 説明

リモートディスク (例: S3、Azure Blob Storage) に保存されているデータファイルに関する情報が含まれます。これには、ローカルのメタデータパスとリモートのブロブパスの対応関係も含まれます。

各行は、データファイルに関連付けられた 1 つのリモートブロブオブジェクトを表します。

## カラム

* `disk_name` ([String](/ja/reference/data-types/string)) — ディスク名。
* `path` ([String](/ja/reference/data-types/string)) — ディスクのパス。
* `metadata_type` ([String](/ja/reference/data-types/string)) — ディスクのメタデータストレージタイプ (例: `Local`、`PlainRewritable`)。
* `cache_base_path` ([String](/ja/reference/data-types/string)) — cacheファイルのベースディレクトリ。
* `local_path` ([String](/ja/reference/data-types/string)) — ClickHouseファイルのパス。メタデータパスとしても使用されます。
* `remote_path` ([String](/ja/reference/data-types/string)) — ClickHouseファイルに関連付けられたobject storage内のブロブのパス。
* `size` ([UInt64](/ja/reference/data-types/int-uint)) — ファイルサイズ (圧縮後) 。
* `common_prefix_for_blobs` ([String](/ja/reference/data-types/string)) — object storage内のブロブの共通プレフィックス。
* `cache_paths` ([Array(String)](/ja/reference/data-types/array)) — 対応するブロブのcacheファイル。
* `last_modified` ([DateTime](/ja/reference/data-types/datetime)) — ファイルのメタデータの最終更新時刻。記録しないメタデータストレージの場合はゼロです。

## 例

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

```text theme={null}
Row 1:
──────
disk_name:              s3
path:                   /var/lib/clickhouse/disks/s3/
cache_base_path:        /var/lib/clickhouse/disks/s3_cache/
local_path:             store/123/1234abcd-1234-1234-1234-1234abcd1234/all_0_0_0/data.bin
remote_path:            abc123/all_0_0_0/data.bin
size:                   1048576
common_prefix_for_blobs:
cache_paths:            ['/var/lib/clickhouse/disks/s3_cache/a1/b2/c3d4e5f6']
```

## 関連項目

* [データ保存に外部ストレージを使用する](/ja/reference/engines/table-engines/mergetree-family/mergetree#table_engine-mergetree-s3)
* [外部ストレージを構成する](/ja/concepts/features/configuration/server-config/storing-data#configuring-external-storage)
* [system.disks](/ja/reference/system-tables/disks)
