This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-0.9 by this push:
new 7c0a4096c5 [MINOR] doc(iceberg): add Trino example for Iceberg REST
catalog (#7121)
7c0a4096c5 is described below
commit 7c0a4096c51149b862a98f2a6a552f96661ae9ad
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed May 7 15:47:32 2025 +0800
[MINOR] doc(iceberg): add Trino example for Iceberg REST catalog (#7121)
### 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
Co-authored-by: FANNG <[email protected]>
---
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 07ceeac782..ca1d88ae01 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: