From 7ffacbf96d9747b30d64d13d1ebb0a1c608ce5a1 Mon Sep 17 00:00:00 2001 From: sundyli <543950155@qq.com> Date: Fri, 17 Apr 2026 01:54:01 +0000 Subject: [PATCH 1/2] docs: add create catalog sql reference --- .../00-ddl/09-catalog/_category_.json | 1 + .../00-ddl/09-catalog/create-catalog.md | 14 ++++++++++++++ .../10-sql-commands/00-ddl/09-catalog/index.md | 6 ++++++ .../sql-reference/10-sql-commands/00-ddl/index.md | 1 + .../00-ddl/09-catalog/_category_.json | 1 + .../00-ddl/09-catalog/create-catalog.md | 14 ++++++++++++++ .../10-sql-commands/00-ddl/09-catalog/index.md | 6 ++++++ .../sql-reference/10-sql-commands/00-ddl/index.md | 1 + 8 files changed, 44 insertions(+) create mode 100644 docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/_category_.json create mode 100644 docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/create-catalog.md create mode 100644 docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/index.md create mode 100644 docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/_category_.json create mode 100644 docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/create-catalog.md create mode 100644 docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/index.md diff --git a/docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/_category_.json b/docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/_category_.json new file mode 100644 index 0000000000..0d4bf8663f --- /dev/null +++ b/docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/_category_.json @@ -0,0 +1 @@ +{"label":"Catalog","position":9} diff --git a/docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/create-catalog.md b/docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/create-catalog.md new file mode 100644 index 0000000000..39f2f98179 --- /dev/null +++ b/docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/create-catalog.md @@ -0,0 +1,14 @@ +--- +title: CREATE CATALOG +sidebar_position: 1 +--- + +创建一个 catalog。 + +## 语法 + +```sql +CREATE CATALOG [ IF NOT EXISTS ] +TYPE = +CONNECTION = ( = '' [ , ... ] ) +``` diff --git a/docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/index.md b/docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/index.md new file mode 100644 index 0000000000..cc6884af04 --- /dev/null +++ b/docs/cn/sql-reference/10-sql-commands/00-ddl/09-catalog/index.md @@ -0,0 +1,6 @@ +--- +title: Catalog +--- +| 命令 | 描述 | +|---------|-------------| +| [CREATE CATALOG](create-catalog.md) | 创建 catalog | diff --git a/docs/cn/sql-reference/10-sql-commands/00-ddl/index.md b/docs/cn/sql-reference/10-sql-commands/00-ddl/index.md index 7fa51bd219..5efb3a591b 100644 --- a/docs/cn/sql-reference/10-sql-commands/00-ddl/index.md +++ b/docs/cn/sql-reference/10-sql-commands/00-ddl/index.md @@ -8,6 +8,7 @@ title: DDL(Data Definition Language)命令 | 组件 | 描述 | |-----------|-------------| +| **[Catalog](09-catalog/index.md)** | 创建 catalog | | **[数据库](00-database/index.md)** | 创建、修改和删除数据库 | | **[表](01-table/index.md)** | 创建、修改和管理表 | | **[表版本管理 (Table Versioning)](21-table-versioning/index.md)** | 创建命名快照标签用于时间回溯 | diff --git a/docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/_category_.json b/docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/_category_.json new file mode 100644 index 0000000000..0d4bf8663f --- /dev/null +++ b/docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/_category_.json @@ -0,0 +1 @@ +{"label":"Catalog","position":9} diff --git a/docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/create-catalog.md b/docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/create-catalog.md new file mode 100644 index 0000000000..5b0b231ef7 --- /dev/null +++ b/docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/create-catalog.md @@ -0,0 +1,14 @@ +--- +title: CREATE CATALOG +sidebar_position: 1 +--- + +Creates a catalog. + +## Syntax + +```sql +CREATE CATALOG [ IF NOT EXISTS ] +TYPE = +CONNECTION = ( = '' [ , ... ] ) +``` diff --git a/docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/index.md b/docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/index.md new file mode 100644 index 0000000000..d0f8ba9158 --- /dev/null +++ b/docs/en/sql-reference/10-sql-commands/00-ddl/09-catalog/index.md @@ -0,0 +1,6 @@ +--- +title: Catalog +--- +| Command | Description | +|---------|-------------| +| [CREATE CATALOG](create-catalog.md) | Creates a catalog | diff --git a/docs/en/sql-reference/10-sql-commands/00-ddl/index.md b/docs/en/sql-reference/10-sql-commands/00-ddl/index.md index 18969db93a..bf55e8db22 100644 --- a/docs/en/sql-reference/10-sql-commands/00-ddl/index.md +++ b/docs/en/sql-reference/10-sql-commands/00-ddl/index.md @@ -8,6 +8,7 @@ These topics provide reference information for the DDL (Data Definition Language | Component | Description | |-----------|-------------| +| **[Catalog](09-catalog/index.md)** | Create catalogs | | **[Database](00-database/index.md)** | Create, alter, and drop databases | | **[Table](01-table/index.md)** | Create, alter, and manage tables | | **[Table Versioning](21-table-versioning/index.md)** | Create named snapshot tags for time travel | From f5e92ad9ef3107bfe69b8d80619d196b74685072 Mon Sep 17 00:00:00 2001 From: sundyli <543950155@qq.com> Date: Thu, 30 Apr 2026 20:44:53 +0800 Subject: [PATCH 2/2] fix: update Catalog description in DDL index per review --- docs/cn/sql-reference/10-sql-commands/00-ddl/index.md | 2 +- docs/en/sql-reference/10-sql-commands/00-ddl/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cn/sql-reference/10-sql-commands/00-ddl/index.md b/docs/cn/sql-reference/10-sql-commands/00-ddl/index.md index 5efb3a591b..f33e502f89 100644 --- a/docs/cn/sql-reference/10-sql-commands/00-ddl/index.md +++ b/docs/cn/sql-reference/10-sql-commands/00-ddl/index.md @@ -8,7 +8,7 @@ title: DDL(Data Definition Language)命令 | 组件 | 描述 | |-----------|-------------| -| **[Catalog](09-catalog/index.md)** | 创建 catalog | +| **[Catalog](09-catalog/index.md)** | 创建、修改和删除 catalog | | **[数据库](00-database/index.md)** | 创建、修改和删除数据库 | | **[表](01-table/index.md)** | 创建、修改和管理表 | | **[表版本管理 (Table Versioning)](21-table-versioning/index.md)** | 创建命名快照标签用于时间回溯 | diff --git a/docs/en/sql-reference/10-sql-commands/00-ddl/index.md b/docs/en/sql-reference/10-sql-commands/00-ddl/index.md index bf55e8db22..7baec580a3 100644 --- a/docs/en/sql-reference/10-sql-commands/00-ddl/index.md +++ b/docs/en/sql-reference/10-sql-commands/00-ddl/index.md @@ -8,7 +8,7 @@ These topics provide reference information for the DDL (Data Definition Language | Component | Description | |-----------|-------------| -| **[Catalog](09-catalog/index.md)** | Create catalogs | +| **[Catalog](09-catalog/index.md)** | Create, drop, and manage catalogs | | **[Database](00-database/index.md)** | Create, alter, and drop databases | | **[Table](01-table/index.md)** | Create, alter, and manage tables | | **[Table Versioning](21-table-versioning/index.md)** | Create named snapshot tags for time travel |