> ## 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.

> 包含存储在 S3 或 Azure Blob 存储等远程 磁盘上的数据文件信息的系统表

# system.remote_data_paths

<div id="description">
  ## 描述
</div>

包含有关存储在远程磁盘 (例如 S3、Azure Blob 存储) 上的数据文件的信息，包括本地元数据路径与远程 blob 路径之间的映射关系。

每一行表示一个与数据文件关联的远程 blob 对象。

<div id="columns">
  ## 列
</div>

* `disk_name` ([String](/zh/reference/data-types/index)) — 磁盘名称。
* `path` ([String](/zh/reference/data-types/index)) — 磁盘路径。
* `cache_base_path` ([String](/zh/reference/data-types/index)) — 缓存文件的根目录。
* `local_path` ([String](/zh/reference/data-types/index)) — ClickHouse 文件的路径，也可用作元数据路径。
* `remote_path` ([String](/zh/reference/data-types/index)) — 对象存储中的 blob 路径，与 ClickHouse 文件相对应。
* `size` ([UInt64](/zh/reference/data-types/index)) — 文件大小 (压缩后) 。
* `common_prefix_for_blobs` ([String](/zh/reference/data-types/index)) — 对象存储中 blobs 的公共前缀。
* `cache_paths` ([Array(String)](/zh/reference/data-types/index)) — 对应 blob 的缓存文件路径。

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

```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']
```

<div id="see-also">
  ## 另请参见
</div>

* [使用外部存储来存储数据](/zh/reference/engines/table-engines/mergetree-family/mergetree#table_engine-mergetree-s3)
* [配置外部存储](/zh/concepts/features/configuration/server-config/storing-data#configuring-external-storage)
* [system.disks](/zh/reference/system-tables/disks)
