From 3df2995d1acfa943eb37751caaaeb5a9ceb53f3c Mon Sep 17 00:00:00 2001 From: sunxiaojian Date: Sun, 3 Mar 2024 21:46:51 +0800 Subject: [PATCH] Improve doc --- docs/content/how-to/creating-catalogs.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/content/how-to/creating-catalogs.md b/docs/content/how-to/creating-catalogs.md index 4d12d96ed0af..0a82966d9d9f 100644 --- a/docs/content/how-to/creating-catalogs.md +++ b/docs/content/how-to/creating-catalogs.md @@ -195,17 +195,22 @@ Paimon JDBC Catalog in Flink needs to correctly add the corresponding jar packag CREATE CATALOG my_jdbc WITH ( 'type' = 'paimon', 'metastore' = 'jdbc', - -- 'uri' = 'jdbc:mysql://:/', - -- 'jdbc.user' = '...', - -- 'jdbc.password' = '...', - -- 'initialize-catalog-tables'='true' - -- 'warehouse' = 'hdfs:///path/to/warehouse', + 'uri' = 'jdbc:mysql://:/', + 'jdbc.user' = '...', + 'jdbc.password' = '...', + 'catalog-name'='jdbc' + 'initialize-catalog-tables'='true' + 'warehouse' = 'hdfs:///path/to/warehouse' ); USE CATALOG my_jdbc; ``` You can define any connection parameters for a database with the prefix "jdbc.". +You can define the "initialize-catalog-tables" configuration to automatically create tables required for the initial JdbcCatalog. If it is true, tables will be automatically created when initializing JdbcCatalog. If it is false, tables will not be automatically created and you must manually create them. + +You can also customize the name of the created jdbc catalog through 'catalog-name'. + You can define any default table options with the prefix `table-default.` for tables created in the catalog. {{< /tab >}}