From 74bc9e44584f361e88c7beef57759d440cdbecb0 Mon Sep 17 00:00:00 2001 From: LinMingQiang Date: Fri, 12 Jul 2024 14:21:50 +0800 Subject: [PATCH] [doc] Complement expire_strategy possible values for procedures expire_partitions. --- docs/content/flink/procedures.md | 2 +- docs/content/spark/procedures.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/content/flink/procedures.md b/docs/content/flink/procedures.md index 02c45f0ad91b..2ef8f800febb 100644 --- a/docs/content/flink/procedures.md +++ b/docs/content/flink/procedures.md @@ -258,7 +258,7 @@ All available procedures are listed below.
  • table: the target table identifier. Cannot be empty.
  • expiration_time: the expiration interval of a partition. A partition will be expired if it‘s lifetime is over this value. Partition time is extracted from the partition value.
  • timestamp_formatter: the formatter to format timestamp from string.
  • -
  • expire_strategy: the expiration strategy for partition expiration.
  • +
  • expire_strategy: specifies the expiration strategy for partition expiration, possible values: 'values-time' or 'update-time' , 'values-time' as default.
  • -- for Flink 1.18

    diff --git a/docs/content/spark/procedures.md b/docs/content/spark/procedures.md index 80e120740ea4..d9a744cdd66f 100644 --- a/docs/content/spark/procedures.md +++ b/docs/content/spark/procedures.md @@ -73,8 +73,9 @@ This section introduce all available spark procedures about paimon.
  • table: the target table identifier. Cannot be empty.
  • expiration_time: the expiration interval of a partition. A partition will be expired if it‘s lifetime is over this value. Partition time is extracted from the partition value.
  • timestamp_formatter: the formatter to format timestamp from string.
  • +
  • expire_strategy: specifies the expiration strategy for partition expiration, possible values: 'values-time' or 'update-time' , 'values-time' as default.
  • - CALL sys.expire_partitions(table => 'default.T', expiration_time => '1 d', timestamp_formatter => 'yyyy-MM-dd') + CALL sys.expire_partitions(table => 'default.T', expiration_time => '1 d', timestamp_formatter => 'yyyy-MM-dd', expire_strategy => 'values-time') create_tag