You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "flyrain (via GitHub)" <gi...@apache.org> on 2025/03/31 18:51:51 UTC

[PR] Rename the Snapshot Retention policy [polaris]

flyrain opened a new pull request, #1284:
URL: https://github.com/apache/polaris/pull/1284

   I'm proposing to rename the table maintenance policy "snapshot-retention" to "snapshot-expiry". While "snapshot-retention" is a reasonable name, it's a bit too general. I believe "snapshot-expiry" more precisely captures the intent of the policy, which is specifically about removing expired snapshots. 
   
   I think this is the right time to make the change before we include the policy schemas in an upcoming release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2022896891


##########
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",

Review Comment:
   As for me, given the example below, the term "retention" looks more relevant. Expiry means something is not valid/usable anymore, while the purpose of this policy (although unstated) appears to be controlling when snapshots are discarded, while still being logically valid.
   
   (edit: removed "minor", let's discuss)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2025426950


##########
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",

Review Comment:
   Thanks for the update @flyrain .
   
   With that description the term "expiry" makes sense to me.
   
   However, I believe it would be nice to have that information in the description of the policy (in code). Referring back to GH discussions is not practical.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard merged PR #1284:
URL: https://github.com/apache/polaris/pull/1284


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2023186360


##########
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",

Review Comment:
   It's a little ambiguous. It seems like the intent of the policy is to determine under what conditions expiry should happen. Similarly, we talk about masking policies, or compaction policies. Expiry seems marginally more in line with this, while retention describes the state when no maintenance action is taken.
   
   Maybe the contention is exactly around the definition of "expire"? If it's interpreted as something that happens passively, such as when a policy becomes too old, then I agree calling this an expiry policy doesn't make as much sense. I was interpreting expire to be used in the same way that Iceberg uses it, where "expire snapshots" is an action wherein you remove certain snapshots.



##########
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",

Review Comment:
   It's a little ambiguous. It seems like the intent of the policy is to determine under what conditions expiry should happen. Similarly, we talk about masking policies, or compaction policies. Expiry seems marginally more in line with this, while retention describes the state when no maintenance action is taken.
   
   Maybe the contention is around the exact definition of "expire"? If it's interpreted as something that happens passively, such as when a policy becomes too old, then I agree calling this an expiry policy doesn't make as much sense. I was interpreting expire to be used in the same way that Iceberg uses it, where "expire snapshots" is an action wherein you remove certain snapshots.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "snazy (via GitHub)" <gi...@apache.org>.
snazy commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2022970061


##########
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",

Review Comment:
   Right.
   Retention and expiration are two different things.
   The term _retention_ is more correct for this use case.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2026215523


##########
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",

Review Comment:
   Yeah I have definitely been a little confused about the semantics of policies. Big +1 on better descriptions (in code)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2023535827


##########
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",

Review Comment:
   @flyrain : Could you clarify what "removing expired snapshots" involves and what makes snapshots "expired" (ideally in the description of the policy we're renaming in this PR)?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2023816343


##########
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",

Review Comment:
   Let me add it here first: 
   What are involved?
   1. A table with snapshots
   2. A Polaris policy which indicates the snapshot expiry is enabled for the table.
   3. Table configuration or policy config indicates how to expire snapshots, including parameters like max age of a snapshot.
   4. An engine or client to able to remove expired snapshots, clean up files for the table. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2023186360


##########
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",

Review Comment:
   It's a little ambiguous. It seems like the intent of the policy is to determine under what conditions expiry should happen. Similarly, we talk about masking policies, or compaction policies. Expiry seems marginally more in line with this, while retention describes the state when no maintenance action is taken.
   
   Maybe the contention is exactly around the definition of "expire"> If it's interpreted as something that happens passively, such as when a policy becomes too old, then I agree calling this an expiry policy doesn't make as much sense. I was interpreting expire to be used in the same way that Iceberg uses it, where "expire snapshots" is a verb meaning to remove certain snapshots.



##########
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",

Review Comment:
   It's a little ambiguous. It seems like the intent of the policy is to determine under what conditions expiry should happen. Similarly, we talk about masking policies, or compaction policies. Expiry seems marginally more in line with this, while retention describes the state when no maintenance action is taken.
   
   Maybe the contention is exactly around the definition of "expire"> If it's interpreted as something that happens passively, such as when a policy becomes too old, then I agree calling this an expiry policy doesn't make as much sense. I was interpreting expire to be used in the same way that Iceberg uses it, where "expire snapshots" is an action wherein you remove certain snapshots.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2023186360


##########
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",

Review Comment:
   It's a little ambiguous. It seems like the intent of the policy is to determine under what conditions expiry should happen. Similarly, we talk about masking policies, or compaction policies. Expiry seems marginally more in line with this, while retention describes the state when no maintenance action is taken.
   
   Maybe the contention is around the exact definition of "expire"? If it's interpreted as something that happens passively, such as when a policy becomes too old, then I agree calling this an expiry policy doesn't make as much sense. I was interpreting expire to be used in the same way that Iceberg uses it, where "expire snapshots" is an action wherein you remove certain snapshots. The Iceberg docs say, for example:
   > Expiring old snapshots removes them from metadata



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2022896891


##########
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",

Review Comment:
   minor: As for me, given the example below, the term "retention" looks more relevant. Expiry means something is not valid/usable anymore, while the purpose of this policy (although unstated) appears to be controlling when snapshots are discarded, while still being logically valid.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2023186360


##########
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",

Review Comment:
   It's a little ambiguous. It seems like the intent of the policy is to determine under what conditions expiry should happen. Similarly, we talk about masking policies, or compaction policies. Expiry seems marginally more in line with this, while retention describes the state when no maintenance action is taken.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2023525362


##########
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",

Review Comment:
   Is the behaviour of this policy defined somewhere? (sorry, I'm missing the obvious). It would help a lot in reasoning about names and descriptions... TBH, the current description is rather obscure (also properties is just a bag of arbitrary entries).



##########
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",

Review Comment:
   Is the behaviour of this policy defined somewhere? (sorry, if I'm missing the obvious). It would help a lot in reasoning about names and descriptions... TBH, the current description is rather obscure (also properties is just a bag of arbitrary entries).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Rename the Snapshot Retention policy [polaris]

Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain commented on code in PR #1284:
URL: https://github.com/apache/polaris/pull/1284#discussion_r2023528479


##########
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",

Review Comment:
   The example below demonstrates a free-form config map—its key-value pairs can be anything, like `expire-in-days`. So we shouldn't base a strong argument on this example alone. Using retention here isn't technically wrong, it's a valid term. However, the main reason for renaming it to expiry is to make the intent of this table maintenance policy more precise: it's specifically about removing expired snapshots. Retention is a broader concept and could imply that the maintenance job does more than just snapshot cleanup.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org