jerqi commented on code in PR #9705:
URL: https://github.com/apache/gravitino/pull/9705#discussion_r2688676422


##########
docs/iceberg-rest-service.md:
##########
@@ -561,6 +561,37 @@ INSERT INTO dml.test VALUES (1), (2);
 SELECT * FROM dml.test;
 ```
 
+## Apache Flink Integration
+
+You can use Apache Flink to connect to the Gravitino Iceberg REST catalog 
service. Below is an example of how to create a catalog and access tables using 
Flink SQL:
+
+```
+CREATE CATALOG my_catalog WITH (
+  'type' = 'iceberg',
+  'catalog-type' = 'rest',
+  'uri' = 'http://localhost:9001/iceberg/',
+  'header.X-Iceberg-Access-Delegation' = 'vended-credentials',
+  'rest.auth.type' = 'basic',
+  'rest.auth.basic.username' = 'manager',
+  'rest.auth.basic.password' = 'mock'
+);
+```
+
+After creating the catalog, you can use standard Flink SQL commands to explore 
and manage your Iceberg tables:
+
+```
+USE CATALOG my_catalog;
+SHOW DATABASES;
+USE default;
+SHOW TABLES;
+CREATE TABLE `my_catalog`.`default`.`sample`  (

Review Comment:
   I need to create a table before reading and writing.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to