Skip to content

Commit

Permalink
Merge pull request #3527 from liquidcarbon/iss3502
Browse files Browse the repository at this point in the history
write parquet kv metadata example
  • Loading branch information
szarnyasg committed Sep 4, 2024
2 parents 8e509dc + 018598a commit 425b9f4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/data/parquet/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,20 @@ COPY tbl
(FORMAT 'parquet', CODEC 'zstd', COMPRESSION_LEVEL 1);
```

Write to Parquet file with [key-value metadata]({% link docs/data/parquet/metadata.md %}):

```sql
COPY (
SELECT
42 AS number,
True AS is_even
) TO 'kv_metadata.parquet' (
FORMAT PARQUET,
KV_METADATA {number: 'Answer to life, universe, and everything', is_even: 'not ''odd'''}
/* single quotes in values must be escaped */
);
```

Write a CSV file to an uncompressed Parquet file:

```sql
Expand Down

0 comments on commit 425b9f4

Please sign in to comment.