This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new ead39547a8 [#8789] docs(iceberg): add  pyiceberg  usage document 
(#8805)
ead39547a8 is described below

commit ead39547a885b7abfdee8fef1017848a0292085d
Author: FANNG <[email protected]>
AuthorDate: Tue Oct 14 12:54:45 2025 +0900

    [#8789] docs(iceberg): add  pyiceberg  usage document (#8805)
    
    ### What changes were proposed in this pull request?
    
    add pyiceberg usage document
    
    ### Why are the changes needed?
    
    Fix: #8789
    
    ### Does this PR introduce _any_ user-facing change?
    
    no
    
    ### How was this patch tested?
    just document
---
 docs/iceberg-rest-service.md | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

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:

Reply via email to