You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
COPY FROM DATABASE iceberg_datalake TO my_ducklake;
62
62
```
63
63
64
64
**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;
67
67
-- Assuming Iceberg catalog is empty since the COPY command does
68
68
-- not replace tables
69
69
CREATESCHEMAiceberg_datalake.main;
70
-
CREATETABLEducklake.default.ducklake_tableAS
70
+
CREATETABLEmy_ducklake.default.ducklake_tableAS
71
71
SELECT a FROM range(4) t(a);
72
-
COPY FROM DATABASE ducklake TO iceberg_datalake;
72
+
COPY FROM DATABASE my_ducklake TO iceberg_datalake;
73
73
```
74
74
75
75
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.
Now you can query any version of the iceberg table as if it was a DuckLake table.
87
87
88
88
```sql
89
-
FROMducklake.default.iceberg_table AT (VERSION =>0);
89
+
FROMmy_ducklake.default.iceberg_table AT (VERSION =>0);
90
90
```
91
91
92
92
```text
@@ -148,7 +148,7 @@ FROM Stock;
148
148
149
149
### CHECKPOINT Statement
150
150
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.
0 commit comments