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/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 725043e08 [doc] update docs for spark/flink create_tag (#3565)
725043e08 is described below

commit 725043e08ca232aa09301c8101fd24096aa81b6d
Author: askwang <[email protected]>
AuthorDate: Fri Jun 21 15:47:31 2024 +0800

    [doc] update docs for spark/flink create_tag (#3565)
---
 docs/content/flink/procedures.md | 3 ++-
 docs/content/spark/procedures.md | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/docs/content/flink/procedures.md b/docs/content/flink/procedures.md
index da7b7ff5b..e87703d09 100644
--- a/docs/content/flink/procedures.md
+++ b/docs/content/flink/procedures.md
@@ -109,9 +109,10 @@ All available procedures are listed below.
             <li>identifier: the target table identifier. Cannot be empty.</li>
             <li>tagName: name of the new tag.</li>
             <li>snapshotId (Long): id of the snapshot which the new tag is 
based on.</li>
+            <li>time_retained: The maximum time retained for newly created 
tags.</li>
       </td>
       <td>
-         CALL sys.create_tag('default.T', 'my_tag', 10)
+         CALL sys.create_tag('default.T', 'my_tag', 10, '1 d')
       </td>
    </tr>
    <tr>
diff --git a/docs/content/spark/procedures.md b/docs/content/spark/procedures.md
index 130c3137f..3b2cdc93a 100644
--- a/docs/content/spark/procedures.md
+++ b/docs/content/spark/procedures.md
@@ -82,10 +82,11 @@ This section introduce all available spark procedures about 
paimon.
             <li>table: the target table identifier. Cannot be empty.</li>
             <li>tag: name of the new tag. Cannot be empty.</li>
             <li>snapshot(Long):  id of the snapshot which the new tag is based 
on.</li>
+            <li>time_retained: The maximum time retained for newly created 
tags.</li>
       </td>
       <td>
-         -- based on snapshot 10 <br/>
-         CALL sys.create_tag(table => 'default.T', tag => 'my_tag', snapshot 
=> 10) <br/>
+         -- based on snapshot 10 with 1d <br/>
+         CALL sys.create_tag(table => 'default.T', tag => 'my_tag', snapshot 
=> 10, time_retained => '1 d') <br/>
          -- based on the latest snapshot <br/>
          CALL sys.create_tag(table => 'default.T', tag => 'my_tag')
       </td>

Reply via email to