laserninja opened a new pull request, #11727: URL: https://github.com/apache/gravitino/pull/11727
### What changes were proposed in this pull request? Add a design document for the built-in Iceberg expire-snapshots maintenance job (`design-docs/iceberg-expire-snapshots-maintenance-job.md`). The design covers the full end-to-end architecture: - **Layer 1 (Policy):** New `IcebergSnapshotExpirationContent` policy content class and `ICEBERG_SNAPSHOT_EXPIRATION` built-in type - **Layer 2 (Strategy):** `SnapshotExpirationStrategyHandler` operating at the table level (no partition scoring) - **Layer 3 (Adapter):** `GravitinoSnapshotExpirationJobAdapter` converting strategy results to job config - **Layer 4 (Job):** `IcebergExpireSnapshotsJob` executing via Spark (implementation in PR #11206) Key design decisions: - All expiration parameters (`olderThanDays`, `retainLast`, `streamResults`) are **independently optional** — users can specify any combination - Snapshot expiration operates at the table level (no partition statistics needed) - Trigger based on `custom-snapshot-count` statistic ### Why are the changes needed? As requested by reviewers in PR #11206, the design document should be submitted as a dedicated PR before the implementation PRs. Fix: #11194 ### Does this PR introduce _any_ user-facing change? No. Documentation only. ### How was this patch tested? N/A — documentation only. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
