Skip to content

Commit

Permalink
Merge pull request #4862 from szarnyasg/iss2875
Browse files Browse the repository at this point in the history
Document BROTLI compression
  • Loading branch information
szarnyasg authored Feb 20, 2025
2 parents a3d0646 + 23966e9 commit 46fc1a0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docs/data/parquet/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ COPY
(FORMAT PARQUET, COMPRESSION ZSTD, ROW_GROUP_SIZE 100_000);
```

Write a CSV file to an `LZ4_RAW`-compressed Parquet file:
Write data to an `LZ4_RAW`-compressed Parquet file:

```sql
COPY
Expand All @@ -272,7 +272,7 @@ COPY
(FORMAT PARQUET, COMPRESSION LZ4);
```

Or:
Or, equivalently:

```sql
COPY
Expand All @@ -281,7 +281,16 @@ COPY
(FORMAT PARQUET, COMPRESSION LZ4_RAW);
```

DuckDB's `EXPORT` command can be used to export an entire database to a series of Parquet files. See the [Export statement documentation]({% link docs/sql/statements/export.md %}) for more details:
Write data to a `BROTLI`-compressed Parquet file:

```sql
COPY
(FROM generate_series(100_000))
TO 'result-brotli.parquet'
(FORMAT PARQUET, COMPRESSION BROTLI);
```

DuckDB's `EXPORT` command can be used to export an entire database to a series of Parquet files. See the [`EXPORT` statement” page]({% link docs/sql/statements/export.md %}) for more details:

Export the table contents of the entire database as Parquet:

Expand Down

0 comments on commit 46fc1a0

Please sign in to comment.