Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#8789] docs(iceberg): add pyiceberg usage document (#8805)

FANNGead39547a885
diff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.md
index 206195f51b..a97618e5a6 100644
--- a/docs/iceberg-rest-service.md
+++ b/docs/iceberg-rest-service.md
@@ -575,6 +575,26 @@ INSERT INTO t values(1);
SELECT * FROM t;
```
+### Exploring Apache Iceberg with PyIceberg
+
+```python
+from pyiceberg.catalog import load_catalog
+
+catalog = load_catalog(
+ "my_rest_catalog",
+ **{
+ "type": "rest",
+ "uri": "http://localhost:9001/iceberg",
+ "header.X-Iceberg-Access-Delegation":"vended-credentials",
+ "auth": {"type": "noop"},
+ }
+)
+
+table_identifier = "db.table"
+table = catalog.load_table(table_identifier)
+print(table.scan().to_arrow())
+```
+
## Docker instructions
You could run Gravitino Iceberg REST server though docker container: