Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#9973] fix(docs): Add the documents about Flink catalog name limitation (#10145)

roryqiab28a7f2ad6a
diff --git a/docs/flink-connector/flink-connector.md b/docs/flink-connector/flink-connector.md
index 5725f9a9b5..1d0c31664e 100644
--- a/docs/flink-connector/flink-connector.md
+++ b/docs/flink-connector/flink-connector.md
@@ -83,6 +83,16 @@ INSERT INTO hive_students VALUES (1, 'Alice'), (2, 'Bob');
SELECT * FROM hive_students;
```
+## Catalog naming restrictions
+
+:::caution
+When creating catalogs that will be used with the Flink connector, the catalog name **cannot start with a number**. This is a Flink limitation. For example:
+- ✅ Valid: `catalog_hive`, `hive_catalog`, `my_catalog_1`
+- ❌ Invalid: `1_catalog`, `123catalog`, `2hive`
+
+If you create a catalog with a name starting with a number, it will not be accessible from Flink.
+:::
+
## Datatype mapping
Gravitino flink connector support the following datatype mapping between Flink and Gravitino.
diff --git a/docs/manage-relational-metadata-using-gravitino.md b/docs/manage-relational-metadata-using-gravitino.md
index 016d44a36b..3c5888197e 100644
--- a/docs/manage-relational-metadata-using-gravitino.md
+++ b/docs/manage-relational-metadata-using-gravitino.md
@@ -46,6 +46,11 @@ It is not recommended to use one data source to create multiple catalogs,
as multiple catalogs operating on the same source may result in unpredictable behavior.
:::
+:::caution
+If you plan to use the [Flink connector](./flink-connector/flink-connector.md), the catalog name **cannot start with a number**.
+This is a Flink limitation. For example, `catalog_hive` is valid, but `1_catalog` is not.
+:::
+
:::tip
The code below is an example of creating a Hive catalog. For other relational catalogs, the code is
similar, but the catalog type, provider, and properties may be different. For more details, please refer to the related doc.