This is an automated email from the ASF dual-hosted git repository. lzljs3620320 pushed a commit to branch release-0.5 in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git
commit 461096ef600cb24e39a27486aa96206c4874a09f Author: Jingsong <[email protected]> AuthorDate: Mon Aug 28 12:12:05 2023 +0800 [doc] Document Spark truncate table --- docs/content/how-to/writing-tables.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/content/how-to/writing-tables.md b/docs/content/how-to/writing-tables.md index 12268e156..07c964261 100644 --- a/docs/content/how-to/writing-tables.md +++ b/docs/content/how-to/writing-tables.md @@ -224,20 +224,29 @@ INSERT OVERWRITE MyTable SELECT ... {{< /tabs >}} -## Purging tables +## Truncate tables -You can use `INSERT OVERWRITE` to purge tables by inserting empty value. - -{{< tabs "purge-tables-syntax" >}} +{{< tabs "truncate-tables-syntax" >}} {{< tab "Flink" >}} +You can use `INSERT OVERWRITE` to purge tables by inserting empty value. + ```sql INSERT OVERWRITE MyTable /*+ OPTIONS('dynamic-partition-overwrite'='false') */ SELECT * FROM MyTable WHERE false; ``` {{< /tab >}} +{{< tab "Spark" >}} + +```sql +TRUNCATE TABLE MyTable; +``` + +{{< /tab >}} + + {{< /tabs >}} ## Purging Partitions
