Skip to content

Commit 7c9fe98

Browse files
committed
Touchups
1 parent 5d1a56f commit 7c9fe98

File tree

2 files changed

+33
-25
lines changed

2 files changed

+33
-25
lines changed

docs/preview/duckdb/advanced_features/data_inlining.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ SET ducklake_default_data_inlining_row_limit = 0;
3232

3333
### Per-Connection Override
3434

35-
The `DATA_INLINING_ROW_LIMIT` ATTACH parameter overrides the default for a single connection. This setting is not persisted and must be specified on each attach:
35+
The `DATA_INLINING_ROW_LIMIT` parameter of the `ATTACH` statement overrides the default for a single connection. This setting is not persisted and must be specified on each attach:
3636

3737
```sql
3838
ATTACH 'ducklake:inlining.duckdb' AS my_ducklake (DATA_INLINING_ROW_LIMIT 10);
@@ -55,7 +55,7 @@ When insertion inlining is enabled, small inserts are stored directly in the met
5555

5656
```sql
5757
-- created and managed internally by DuckLake; one table per schema version
58-
ducklake_inlined_data_{table_id}_{schema_version} (
58+
ducklake_inlined_data_table_id⟩_⟨schema_version (
5959
row_id BIGINT,
6060
begin_snapshot BIGINT,
6161
end_snapshot BIGINT,
@@ -110,7 +110,7 @@ When deletion inlining is enabled, deletes from existing Parquet data files that
110110

111111
```sql
112112
-- created and managed internally by DuckLake; one table per DuckLake table
113-
ducklake_inlined_delete_{table_id} (
113+
ducklake_inlined_delete_table_id (
114114
file_id BIGINT,
115115
row_id BIGINT,
116116
begin_snapshot BIGINT

docs/preview/duckdb/guides/using_a_remote_data_path.md

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,39 +24,47 @@ DETACH tpch_sf1_ducklake;
2424

2525
## Generating the Data
2626

27-
We generate the data using the [`tpchgen-cli`](https://github.com/clflushopt/tpchgen-rs/) tool:
27+
Generate the data using the [`tpchgen-cli`](https://github.com/clflushopt/tpchgen-rs/) tool:
2828

2929
```batch
3030
tpchgen-cli --scale-factor 1 --format parquet
3131
```
3232

3333
## Populating the DuckLake
3434

35-
We attach to the DuckLake with a _local data path_ using the `OVERRIDE_DATA_PATH true` flag:
35+
Populating the DuckLake requires the following steps:
3636

37-
```sql
38-
ATTACH 'tpch-sf1.ducklake' AS tpch_sf1_ducklake (
39-
TYPE ducklake,
40-
DATA_PATH 'tpch-sf1',
41-
OVERRIDE_DATA_PATH true
42-
);
43-
USE tpch_sf1_ducklake;
44-
```
37+
1. Attach to the DuckLake with a _local data path_ using the `OVERRIDE_DATA_PATH true` flag:
4538

46-
We then load the data into the DuckLake:
39+
```sql
40+
ATTACH 'tpch-sf1.ducklake' AS tpch_sf1_ducklake (
41+
TYPE ducklake,
42+
DATA_PATH 'tpch-sf1',
43+
OVERRIDE_DATA_PATH true
44+
);
45+
USE tpch_sf1_ducklake;
46+
```
4747

48-
```sql
49-
CREATE TABLE customer AS FROM 'customer.parquet';
50-
CREATE TABLE lineitem AS FROM 'lineitem.parquet';
51-
CREATE TABLE nation AS FROM 'nation.parquet';
52-
CREATE TABLE orders AS FROM 'orders.parquet';
53-
CREATE TABLE part AS FROM 'part.parquet';
54-
CREATE TABLE partsupp AS FROM 'partsupp.parquet';
55-
CREATE TABLE region AS FROM 'region.parquet';
56-
CREATE TABLE supplier AS FROM 'supplier.parquet';
57-
```
48+
2. Load the data into the DuckLake:
49+
50+
```sql
51+
CREATE TABLE customer AS FROM 'customer.parquet';
52+
CREATE TABLE lineitem AS FROM 'lineitem.parquet';
53+
CREATE TABLE nation AS FROM 'nation.parquet';
54+
CREATE TABLE orders AS FROM 'orders.parquet';
55+
CREATE TABLE part AS FROM 'part.parquet';
56+
CREATE TABLE partsupp AS FROM 'partsupp.parquet';
57+
CREATE TABLE region AS FROM 'region.parquet';
58+
CREATE TABLE supplier AS FROM 'supplier.parquet';
59+
```
60+
61+
3. Flush the inlined data:
62+
63+
```sql
64+
CALL ducklake_flush_inlined_data('tpch_sf1_ducklake');
65+
```
5866

59-
Finally, we close DuckDB with `Ctrl + D` or `.quit`.
67+
4. Close the DuckDB session with `Ctrl + D` or `.quit`.
6068

6169
## Uploading the DuckLake
6270

0 commit comments

Comments
 (0)