Skip to content

Commit 295ed05

Browse files
authored
docs: Use load_catalog instead (#1406)
So it is more obvious how to switch catalogs easily.
1 parent ede363b commit 295ed05

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mkdocs/docs/index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,21 @@ mkdir /tmp/warehouse
7575
Open a Python 3 REPL to set up the catalog:
7676

7777
```python
78-
from pyiceberg.catalog.sql import SqlCatalog
78+
from pyiceberg.catalog import load_catalog
7979

8080
warehouse_path = "/tmp/warehouse"
81-
catalog = SqlCatalog(
81+
catalog = load_catalog(
8282
"default",
8383
**{
84+
'type': 'sql',
8485
"uri": f"sqlite:///{warehouse_path}/pyiceberg_catalog.db",
8586
"warehouse": f"file://{warehouse_path}",
8687
},
8788
)
8889
```
8990

91+
The `sql` catalog works for testing locally without needing another service. If you want to try out another catalog, please [check out the configuration](https://py.iceberg.apache.org/configuration/#catalogs).
92+
9093
## Write a PyArrow dataframe
9194

9295
Let's take the Taxi dataset, and write this to an Iceberg table.

0 commit comments

Comments
 (0)