> ## Documentation Index
> Fetch the complete documentation index at: https://cndoc-langchain.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 导入导出数据

> 将 LangSmith 批量导出的 Parquet 数据导入 BigQuery、Snowflake、Redshift、Clickhouse 或 DuckDB。

从 S3 和 Parquet 格式导入数据是大多数分析系统普遍支持的功能。相关文档链接如下：

## BigQuery

要将数据导入 BigQuery，请参阅[从 Parquet 加载数据](https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-parquet)以及 [Hive 分区加载](https://cloud.google.com/bigquery/docs/hive-partitioned-loads-gcs)。

## Snowflake

您可以按照[从云加载文档](https://docs.snowflake.com/en/user-guide/tutorials/load-from-cloud-tutorial)中的说明，从 S3 将数据加载到 Snowflake。

## RedShift

您可以按照 [AWS COPY 命令文档](https://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html)中的说明，使用 COPY 命令从 S3 或 Parquet 将数据复制到 Amazon Redshift。

## Clickhouse

您可以直接在 Clickhouse 中查询 S3 / Parquet 格式的数据。例如，如果使用 GCS，您可以按如下方式查询数据：

```sql theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
SELECT count(distinct id) FROM s3('https://storage.googleapis.com/<bucket>/<prefix>/export_id=<export_id>/**',
 'access_key_id', 'access_secret', 'Parquet')
```

更多信息请参阅 [Clickhouse S3 集成文档](https://clickhouse.com/docs/en/engines/table-engines/integrations/s3)。

## DuckDB

您可以使用 DuckDB 通过 SQL 以内存方式查询 S3 中的数据。请参阅 [S3 导入文档](https://duckdb.org/docs/guides/network_cloud_storage/s3_import.html)。

***

<div className="source-links">
  <Callout icon="terminal-2">
    [连接这些文档](/use-these-docs)到 Claude、VSCode 等，通过 MCP 获取实时答案。
  </Callout>

  <Callout icon="edit">
    [在 GitHub 上编辑此页面](https://github.com/langchain-ai/docs/edit/main/src/langsmith/data-export-downstream.mdx) 或 [提交问题](https://github.com/langchain-ai/docs/issues/new/choose)。
  </Callout>
</div>
