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 1dc8362b7c [MINOR] doc(iceberg): add Trino example for Iceberg REST
catalog (#7118)
1dc8362b7c is described below
commit 1dc8362b7cd56c8432b5ab8363416d4c46186ffd
Author: FANNG <[email protected]>
AuthorDate: Wed May 7 14:21:15 2025 +0800
[MINOR] doc(iceberg): add Trino example for Iceberg REST catalog (#7118)
### What changes were proposed in this pull request?
add Trino example for Iceberg REST catalog document
### Why are the changes needed?
Useful for use Trino Iceberg REST catalog with Gravitino IRC
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
just document
---
docs/iceberg-rest-service.md | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.md
index db4f3a70d8..ac222db129 100644
--- a/docs/iceberg-rest-service.md
+++ b/docs/iceberg-rest-service.md
@@ -415,6 +415,30 @@ INSERT INTO dml.test VALUES (1), (2);
SELECT * FROM dml.test;
```
+## Exploring the Apache Gravitino Iceberg REST catalog service with Trino
+
+### Deploying Trino with Apache Iceberg support
+
+To configure the Iceberg connector, create a catalog properties file like
`etc/catalog/rest.properties` that references the Iceberg connector.
+
+```
+connector.name=iceberg
+iceberg.catalog.type=rest
+iceberg.rest-catalog.uri=http://localhost:9001/iceberg/
+fs.hadoop.enabled=true
+iceberg.rest-catalog.view-endpoints-enabled=false
+```
+
+Please refer to [Trino Iceberg
document](https://trino.io/docs/current/connector/iceberg.html) for more
details.
+
+### Exploring Apache Iceberg with Trino SQL
+
+```sql
+USE rest.dml;
+DELETE FROM rest.dml.test WHERE id = 2;
+SELECT * FROM test;
+```
+
## Docker instructions
You could run Gravitino Iceberg REST server though docker container: