From e96f025baf29479130cc82529adfb04871f72a3f Mon Sep 17 00:00:00 2001 From: Yufei Gu Date: Mon, 31 Mar 2025 11:50:46 -0700 Subject: [PATCH 1/3] Rename the Snapshot Retention policy --- .../2025-02-03.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename polaris-core/src/main/resources/schemas/policies/system/{snapshot-retention => snapshot-expiry}/2025-02-03.json (86%) diff --git a/polaris-core/src/main/resources/schemas/policies/system/snapshot-retention/2025-02-03.json b/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json similarity index 86% rename from polaris-core/src/main/resources/schemas/policies/system/snapshot-retention/2025-02-03.json rename to polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json index dfd79e1979..2712751413 100644 --- a/polaris-core/src/main/resources/schemas/policies/system/snapshot-retention/2025-02-03.json +++ b/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json @@ -1,8 +1,8 @@ { "license": "Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)", - "$id": "https://polaris.apache.org/schemas/policies/system/snapshot-retention/2025-02-03.json", - "title": "Snapshot Retention Policy", - "description": "Inheritable Polaris policy schema for Iceberg table snapshot retention", + "$id": "https://polaris.apache.org/schemas/policies/system/snapshot-expiry/2025-02-03.json", + "title": "Snapshot Expiry Policy", + "description": "Inheritable Polaris policy schema for Iceberg table snapshot expiry", "type": "object", "properties": { "version": { @@ -12,7 +12,7 @@ }, "enable": { "type": "boolean", - "description": "Enable or disable snapshot retention." + "description": "Enable or disable snapshot expiry." }, "config": { "type": "object", From ee4d1ea5d3a28be4cd47bb70b55d540a6aaf1a9b Mon Sep 17 00:00:00 2001 From: Yufei Gu Date: Mon, 21 Apr 2025 17:43:33 -0700 Subject: [PATCH 2/3] Resolve comments --- .../schemas/policies/system/snapshot-expiry/2025-02-03.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json b/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json index 2712751413..aab665417a 100644 --- a/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json +++ b/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json @@ -2,7 +2,7 @@ "license": "Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)", "$id": "https://polaris.apache.org/schemas/policies/system/snapshot-expiry/2025-02-03.json", "title": "Snapshot Expiry Policy", - "description": "Inheritable Polaris policy schema for Iceberg table snapshot expiry", + "description": "Inheritable Polaris policy schema for managing Iceberg table snapshot expiry. This policy allows a table (or its parent) to indicate that snapshot expiry is enabled. It defines how snapshots should be expired. Engines or clients can use this policy to safely remove expired snapshots and delete associated files, helping maintain a clean and efficient table state.", "type": "object", "properties": { "version": { From b65eab5560953c5405fb47b88996b2bff53fe2f8 Mon Sep 17 00:00:00 2001 From: Yufei Gu Date: Mon, 21 Apr 2025 17:47:02 -0700 Subject: [PATCH 3/3] Resolve comments --- .../schemas/policies/system/snapshot-expiry/2025-02-03.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json b/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json index aab665417a..488e45b314 100644 --- a/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json +++ b/polaris-core/src/main/resources/schemas/policies/system/snapshot-expiry/2025-02-03.json @@ -2,7 +2,7 @@ "license": "Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)", "$id": "https://polaris.apache.org/schemas/policies/system/snapshot-expiry/2025-02-03.json", "title": "Snapshot Expiry Policy", - "description": "Inheritable Polaris policy schema for managing Iceberg table snapshot expiry. This policy allows a table (or its parent) to indicate that snapshot expiry is enabled. It defines how snapshots should be expired. Engines or clients can use this policy to safely remove expired snapshots and delete associated files, helping maintain a clean and efficient table state.", + "description": "Inheritable Polaris policy schema for managing Iceberg table snapshot expiry. This policy allows a table (or its parent) to indicate that snapshot expiry is enabled. It also defines how snapshots should be expired. Engines or clients can use this policy to safely remove expired snapshots and delete associated files, helping maintain a clean and efficient table state.", "type": "object", "properties": { "version": {