Skip to content

Commit d45a995

Browse files
authored
Merge pull request #5812 from szarnyasg/ducklake-to-my_ducklake
ducklake -> my_ducklake
2 parents 898234b + 6201ed1 commit d45a995

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

_posts/2025-09-17-ducklake-03.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ATTACH '' AS iceberg_datalake (
4848
CLIENT_SECRET 'password',
4949
ENDPOINT 'http://127.0.0.1:8181'
5050
);
51-
ATTACH 'ducklake:my_ducklake.ducklake' AS ducklake (DATA_PATH 'data/');
51+
ATTACH 'ducklake:my_ducklake.ducklake' AS my_ducklake (DATA_PATH 'data/');
5252
```
5353
</details>
5454

@@ -58,7 +58,7 @@ Now you can **copy from Iceberg to DuckLake.**
5858
CREATE SCHEMA iceberg_datalake.default;
5959
CREATE TABLE iceberg_datalake.default.iceberg_table AS
6060
SELECT a FROM range(4) t(a);
61-
COPY FROM DATABASE iceberg_datalake TO ducklake;
61+
COPY FROM DATABASE iceberg_datalake TO my_ducklake;
6262
```
6363

6464
**Copying from DuckLake to Iceberg** also works, given that the schemas are already created in Iceberg.
@@ -67,9 +67,9 @@ COPY FROM DATABASE iceberg_datalake TO ducklake;
6767
-- Assuming Iceberg catalog is empty since the COPY command does
6868
-- not replace tables
6969
CREATE SCHEMA iceberg_datalake.main;
70-
CREATE TABLE ducklake.default.ducklake_table AS
70+
CREATE TABLE my_ducklake.default.ducklake_table AS
7171
SELECT a FROM range(4) t(a);
72-
COPY FROM DATABASE ducklake TO iceberg_datalake;
72+
COPY FROM DATABASE my_ducklake TO iceberg_datalake;
7373
```
7474

7575
These examples are data copies (i.e., deep copies) of the latest snapshot, which means that only data is ported from Iceberg to DuckLake and vice versa. Metadata-only copies are also supported from Iceberg to DuckLake. The main difference is that metadata only copies do not copy over the underlying data, only the metadata, including all the snapshot history. This means that you can query previous snapshots of an Iceberg table as if it was a DuckLake table.
@@ -86,7 +86,7 @@ CALL iceberg_to_ducklake('iceberg_datalake', 'ducklake');
8686
Now you can query any version of the iceberg table as if it was a DuckLake table.
8787

8888
```sql
89-
FROM ducklake.default.iceberg_table AT (VERSION => 0);
89+
FROM my_ducklake.default.iceberg_table AT (VERSION => 0);
9090
```
9191

9292
```text
@@ -148,7 +148,7 @@ FROM Stock;
148148

149149
### CHECKPOINT Statement
150150

151-
DuckLake now also supports the [`CHECKPOINT` statement](https://ducklake.select/docs/stable/duckdb/maintenance/checkpoint). In DuckLake, this statement runs a series of maintenance functions in a sequential order. This includes flushing inlined data, expiring snapshots, compacting files, and rewriting heavily deleted files as well as cleaning up old or orphaned files. The `CHECKPOINT` statement can be configured via some global options that can be set via the `ducklake.set_option` function.
151+
DuckLake now also supports the [`CHECKPOINT` statement](https://ducklake.select/docs/stable/duckdb/maintenance/checkpoint). In DuckLake, this statement runs a series of maintenance functions in a sequential order. This includes flushing inlined data, expiring snapshots, compacting files, and rewriting heavily deleted files as well as cleaning up old or orphaned files. The `CHECKPOINT` statement can be configured via some global options that can be set via the `my_ducklake.set_option` function.
152152

153153
```sql
154154
ATTACH 'ducklake:my_ducklake.ducklake' AS my_ducklake;
@@ -164,13 +164,13 @@ In the following benchmark we did find ~25% improvement when enabling `per_threa
164164

165165
```sql
166166
.timer on
167-
ATTACH 'ducklake:my_ducklake.ducklake' AS ducklake;
167+
ATTACH 'ducklake:my_ducklake.ducklake' AS my_ducklake;
168168
CREATE TABLE sample_table AS SELECT * FROM range(1_000_000_000);
169169
-- 4.5 seconds
170170
CREATE TABLE slow_copy AS SELECT * FROM sample_table;
171171

172172
-- enable the option
173-
CALL ducklake.set_option('per_thread_output', true);
173+
CALL my_ducklake.set_option('per_thread_output', true);
174174

175175
-- 3.4 seconds
176176
CREATE TABLE fast_copy AS SELECT * FROM sample_table;
@@ -188,7 +188,7 @@ Geometry types are now supported in DuckLake. This means that you can now use mo
188188
INSTALL spatial;
189189
LOAD spatial;
190190

191-
ATTACH 'ducklake:my_ducklake.ducklake' AS ducklake;
191+
ATTACH 'ducklake:my_ducklake.ducklake' AS my_ducklake;
192192
CREATE TABLE geometry_table (polygons GEOMETRY);
193193
INSERT INTO geometry_table VALUES ('POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))');
194194
SELECT

0 commit comments

Comments
 (0)