This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git
The following commit(s) were added to refs/heads/master by this push:
new e134ff6b0 [doc] Optimize Spark quick-start catalog and database
e134ff6b0 is described below
commit e134ff6b0e526e2a73b2df80540f9d913b86f227
Author: JingsongLi <[email protected]>
AuthorDate: Tue Jun 13 20:15:35 2023 +0800
[doc] Optimize Spark quick-start catalog and database
---
docs/content/engines/spark3.md | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/docs/content/engines/spark3.md b/docs/content/engines/spark3.md
index d974c7f3a..565f196b8 100644
--- a/docs/content/engines/spark3.md
+++ b/docs/content/engines/spark3.md
@@ -96,11 +96,15 @@ spark-sql ... \
--conf spark.sql.catalog.paimon.warehouse=file:/tmp/paimon
```
-After `spark-sql` command line has started, run the following SQL to create
and switch to database `paimon.default`.
+Catalogs are configured using properties under
spark.sql.catalog.(catalog_name). In above case, 'paimon' is the
+catalog name, you can change it to your own favorite catalog name.
+
+After `spark-sql` command line has started, run the following SQL to create
and switch to database `default`.
```sql
-CREATE DATABASE paimon.default;
-USE paimon.default;
+USE paimon;
+CREATE DATABASE default;
+USE default;
```
**Step 3: Create a table and Write Some Records**