From 6cfafecdfb9ac41aa459184ccd9ee1e8fba3cfcd Mon Sep 17 00:00:00 2001 From: zouxxyy Date: Fri, 6 Dec 2024 13:54:34 +0800 Subject: [PATCH] update docs --- docs/content/spark/sql-ddl.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/content/spark/sql-ddl.md b/docs/content/spark/sql-ddl.md index b0a833fd7489..638a21a7042a 100644 --- a/docs/content/spark/sql-ddl.md +++ b/docs/content/spark/sql-ddl.md @@ -26,7 +26,7 @@ under the License. # SQL DDL -## Catalog DDL +## Catalog ### Create Catalog @@ -120,7 +120,7 @@ spark-sql ... \ USE paimon.default; ``` -## Table DDL +## Table ### Create Table @@ -214,12 +214,12 @@ CREATE TABLE my_table_all ( CREATE TABLE my_table_all_as PARTITIONED BY (dt) TBLPROPERTIES ('primary-key' = 'dt,hh') AS SELECT * FROM my_table_all; ``` -## View DDL +## View Views are based on the result-set of an SQL query, when using `org.apache.paimon.spark.SparkCatalog`, views are managed by paimon itself. And in this case, views are supported when the `metastore` type is `hive`, and temporary views are not supported yet. -### Create or replace View +### Create Or Replace View CREATE VIEW constructs a virtual table that has no physical data. @@ -240,8 +240,8 @@ DROP VIEW removes the metadata associated with a specified view from the catalog DROP VIEW v1; ``` -## Tag DDL -### Create or replace Tag +## Tag +### Create or Replace Tag Create or replace a tag syntax with the following options. - Create a tag with or without the snapshot id and time retention. - Create an existed tag is not failed if using `IF NOT EXISTS` syntax.