mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-20 10:42:26 +00:00
The existing docs have 254 findings from our shared Vale rules. Contributors would otherwise inherit these when editing the same lines. Clean up the prose across 80 pages: correct product names and a repeated word, simplify a few phrases, and replace dashes with punctuation that fits each sentence. The pinned Vale scan now reports zero findings, with no suppressions.
28 lines
850 B
Plaintext
28 lines
850 B
Plaintext
---
|
|
title: "Copy"
|
|
sidebarTitle: "Copy"
|
|
description: "COPY ... TO: writing a query result to object storage as files."
|
|
icon: file-export
|
|
keywords: ["copy", "export", "parquet", "sql"]
|
|
---
|
|
|
|
<Warning>
|
|
Recent deployment versions refuse `COPY` over the SQL endpoint with "COPY is not
|
|
supported". On those, export a result by reading it through a Flight SQL client
|
|
or an SDK and writing the files from your application.
|
|
</Warning>
|
|
|
|
```sql
|
|
COPY (SELECT id, title FROM documents) TO 's3://bucket/export/' STORED AS PARQUET
|
|
```
|
|
|
|
Writes a query result to object storage. This is the export path when the
|
|
consumer is another engine rather than an application: results land as files
|
|
rather than streaming to a client.
|
|
|
|
## What to read next {#next}
|
|
|
|
<Card title="Insert" icon="plus" href="/sql/dml/insert">
|
|
Bringing rows in, rather than exporting them.
|
|
</Card>
|