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 0961af355 [#4077] improvement(docs): Fixed an incorrect description
and some incomplete examples (#4146)
0961af355 is described below
commit 0961af35585f4419ded7c53969d5422e3f1b65b0
Author: JinsYin <[email protected]>
AuthorDate: Mon Jul 15 11:13:17 2024 +0800
[#4077] improvement(docs): Fixed an incorrect description and some
incomplete examples (#4146)
### What changes were proposed in this pull request?
Fixed an incorrect description.
### Why are the changes needed?
Fix: #4145
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
No testing required
---------
Co-authored-by: rqyin <[email protected]>
---
docs/trino-connector/supported-catalog.md | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/docs/trino-connector/supported-catalog.md
b/docs/trino-connector/supported-catalog.md
index 54d0bedd3..306b2dcc2 100644
--- a/docs/trino-connector/supported-catalog.md
+++ b/docs/trino-connector/supported-catalog.md
@@ -14,7 +14,6 @@ The catalogs currently supported by the Apache Gravitino
connector are as follow
## Create catalog
-Trino itself does not support creating catalogs.
Users can create catalogs through the Gravitino connector and then load them
into Trino.
The Gravitino connector provides the following stored procedures to create,
delete, and alter catalogs.
User can also use the system table `catalog` to describe all the catalogs.
@@ -87,9 +86,9 @@ call gravitino.system.create_catalog(
'jdbc-mysql',
Map(
Array['jdbc-url', 'jdbc-user', 'jdbc-password', 'jdbc-driver'],
- Array['jdbc:mysql:192.168.164.4:3306?useSSL=false', 'trino', 'ds123',
'com.mysql.cj.jdbc.Driver']
+ Array['jdbc:mysql://192.168.164.4:3306?useSSL=false', 'trino',
'ds123', 'com.mysql.cj.jdbc.Driver']
)
-)
+);
call gravitino.system.drop_datalog('mysql');
-- Call stored procedures with name.
@@ -98,10 +97,10 @@ call gravitino.system.create_catalog(
provider => 'jdbc-mysql',
properties => Map(
Array['jdbc-url', 'jdbc-user', 'jdbc-password', 'jdbc-driver'],
- Array['jdbc:mysql:192.168.164.4:3306?useSSL=false', 'trino', 'ds123',
'com.mysql.cj.jdbc.Driver']
+ Array['jdbc:mysql://192.168.164.4:3306?useSSL=false', 'trino',
'ds123', 'com.mysql.cj.jdbc.Driver']
),
ignore_exist => true
-)
+);
call gravitino.system.drop_datalog(
catalog => 'mysql'
@@ -112,10 +111,10 @@ call gravitino.system.alter_catalog(
catalog => 'mysql',
set_properties=> Map(
Array['jdbc-url'],
- Array['jdbc:mysql:127.0.0.1:3306?useSSL=false']
+ Array['jdbc:mysql://127.0.0.1:3306?useSSL=false']
),
remove_properties => Array['jdbc-driver']
-)
+);
```
if you need more information about catalog, please refer to: