This is an automated email from the ASF dual-hosted git repository. yuzelin 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 69bfc240f [doc] Document flink TRUNCATE TABLE syntax (#2294) 69bfc240f is described below commit 69bfc240f0028fc9cfd6e4d91e82ead567b7ee2e Author: yuzelin <33053040+yuze...@users.noreply.github.com> AuthorDate: Thu Nov 9 15:27:12 2023 +0800 [doc] Document flink TRUNCATE TABLE syntax (#2294) --- docs/content/how-to/writing-tables.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/content/how-to/writing-tables.md b/docs/content/how-to/writing-tables.md index 14379eb96..a2b56dc76 100644 --- a/docs/content/how-to/writing-tables.md +++ b/docs/content/how-to/writing-tables.md @@ -232,7 +232,7 @@ INSERT OVERWRITE MyTable SELECT ... {{< tabs "truncate-tables-syntax" >}} -{{< tab "Flink" >}} +{{< tab "Flink 1.17-" >}} You can use `INSERT OVERWRITE` to purge tables by inserting empty value. @@ -242,6 +242,14 @@ INSERT OVERWRITE MyTable /*+ OPTIONS('dynamic-partition-overwrite'='false') */ S {{< /tab >}} +{{< tab "Flink 1.18" >}} + +```sql +TRUNCATE TABLE MyTable; +``` + +{{< /tab >}} + {{< tab "Spark" >}} ```sql